2024-05-16 10:51:34 发布
网友
当我使用pip将东西安装到virtualenv中时,我经常看到消息“UserWarning:Unbuilt egg for setuptools”。我总是安然无恙地忽略它,继续我的事业,它似乎不会给我带来任何问题。在
但我突然好奇地打了我一记耳光,想知道是否有人能解释一下它到底是什么意思?在
另外,使用distribute的新virtualenv选项是否适合于这一切?我应该用它来代替它,还是在distutils2出来之前忽略它?(如果这完全无关,请道歉-也许这应该是一个新问题?)在
谢谢!在
this Ubuntu bug report中的答案和解决方法为我修复了这个问题,我在使用交互式trac-admin命令时读取了相同的错误。在
trac-admin
马吕斯·格德米纳斯说:
Workaround:sudo rmdir /usr/lib/python2.6/dist-packages/setuptools.egg-infosudo apt-get install reinstall python-setuptoolsThis 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.
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.
this Ubuntu bug report中的答案和解决方法为我修复了这个问题,我在使用交互式
trac-admin
命令时读取了相同的错误。在马吕斯·格德米纳斯说:
相关问题 更多 >
编程相关推荐