“错误:选项 --single-version-externally-managed 无法识别"是什么意思?表明? [英] What does "error: option --single-version-externally-managed not recognized" indicate?

查看:15
本文介绍了“错误:选项 --single-version-externally-managed 无法识别"是什么意思?表明?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在使用 pip install 和各种包(包括PyObjCastropy).

I seem to have suddenly started to encounter the error error: option --single-version-externally-managed not recognized when using pip install with various packages (including PyObjC and astropy).

我以前从未见过这个错误,但它现在也出现在 travis-ci 构建中,但没有发生任何变化.

I've never seen this error before, but it's now also showing up on travis-ci builds for which nothing has changed.

此错误是否表示分发已过期?

Does this error indicate an out of date distribution?

setup.py 中某些错误指定的选项?

Some incorrectly specified option in setup.py?

完全是别的东西?

推荐答案

新更新:

安装最新版本的setuptools.如果仍然出现错误,请安装 wheel.

Install the latest version of setuptools. If you still get the error, install wheel as well.

pip install -U setuptools
pip install -U wheel

<小时>

原始答案/更多详细信息:

--single-version-externally-managed 是一个用于 Python 包的选项,它指示 setuptools 模块创建一个 Python 包,如果需要,它可以由主机的包管理器轻松管理,如 Yum或适当.

--single-version-externally-managed is an option used for Python packages instructing the setuptools module to create a Python package which can be easily managed by the host's package manager if needed, like Yum or Apt.

如果您看到此消息,则您可能使用的是旧版本的 setuptools 或 Python.尝试使用 Distribute,它是 setuptools 的较新版本并且向后兼容.这些软件包可能希望您已经拥有它.

If you're seeing this message, you may have an old version of setuptools or Python. Try using Distribute, which is a newer version of setuptools and is backwards compatible. These packages may expect that you have it already.

https://pypi.python.org/pypi/distribute

Edit:此时,distribute 已经合并到主setuptools 项目中.只需安装最新版本的 setuptools.正如@wynemo 指出的那样,您可能希望改用 --egg 选项,因为它更适合那些不打算创建用于分发的系统包的手动安装.

At this point, distribute has been merged into the main setuptools project. Just install the latest version of setuptools. As @wynemo indicated, you may wish to use the --egg option instead, as it's more appropriate for those doing manual installations where you're not intending to create a system package for distribution.

这篇关于“错误:选项 --single-version-externally-managed 无法识别"是什么意思?表明?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆