如何更正此错误:
Traceback (most recent call last):
File "c:\Apps\pypi\bin\buildout-script.py", line 15, in <module>
import site # imports custom buildout-generated site.py
File "c:\Apps\pypi\parts\buildout\site.py", line 673, in <module>
main()
File "c:\Apps\pypi\parts\buildout\site.py", line 656, in main
known_paths = addsitepackages(known_paths)
File "c:\Apps\pypi\parts\buildout\site.py", line 316, in addsitepackages
import pkg_resources
ImportError: No module named pkg_resources
ImportError:没有名为pkg_resources的模块
当我在我的windows上尝试配置/设置mypypihttps://pypi.python.org/pypi/mypypi/1.3.0时,有人知道吗?.谢谢
最佳答案
pkg_resources
在setuptools包中。你需要先安装它。建议的方法是从https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py下载并运行ez_setup.py
。
关于python - ImportError:没有名为pkg_resources的模块,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/22315097/