python - "UserWarning: Unbuilt egg for setuptools"- 这到底是什么意思?

标签 python setuptools pip distribute

当我使用 pip 将东西安装到 virtualenv 中时,我经常看到消息“UserWarning: Unbuilt egg for setuptools”。我总是安全地忽略它并继续我的业务,​​它似乎没有给我带来任何问题。

但我突然被好奇打脸了,想知道是否有人能解释一下这到底是什么意思?

此外,新的 virtualenv 选项使用 distribute 代替适合所有这一切吗?我应该改用它,还是忽略它直到 distutils2 出来? (抱歉,如果这完全不相关 - 也许这应该是一个新问题?)

谢谢!

最佳答案

this Ubuntu bug report 中的答案和解决方法为我解决了这个问题,我在使用交互式 trac-admin 命令时读到了同样的错误。

Marius Gedminas 说:

Workaround:

sudo rmdir /usr/lib/python2.6/dist-packages/setuptools.egg-info

sudo apt-get install --reinstall python-setuptools

This replaces the empty directory /usr/lib/python2.6/dist-packages/setuptools.egg-info with a symlink to /usr/share/pyshared/setuptools.egg-info which is a file, not a directory.

关于python - "UserWarning: Unbuilt egg for setuptools"- 这到底是什么意思?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2643835/

相关文章:

python - 在新鲜环境中构建 cython 扩展 : cannot find/lib/libpthread. so.0

python - 如何确定 PyPI 包中可用的模块

python - 运行 sudo pip install 超时

amazon-web-services - 将 aws 可执行文件添加到操作系统的 PATH 环境变量 : needed every time?

python - 如何将 Csv 文件流式传输到 BigQuery?

python - 在 CSV 文件/Pandas Dataframe 中查找标题行的行号

python - Flask View 中装饰器的顺序是否重要?

python - While 循环不生成乘法表

python setuptool 如何添加 libxml2-dev 和 libxslt1-dev 的依赖项?

python - Pip install 未检测到的故障模式