我正在尝试用
安装燃料和块pip install git+git://github.com/mila-udem/blocks.git@v0.0.1
pip install git+git://github.com/mila-udem/fuel.git@v0.0.1
(我使用的是root帐户) 然后我遇到了问题
pip install git+git://github.com/mila-udem/fuel.git@v0.0.1
Downloading/unpacking git+git://github.com/mila-udem/fuel.git@v0.0.1
Cloning git://github.com/mila-udem/fuel.git to /tmp/pip-PnqUs3-build
Running setup.py (path:/tmp/pip-PnqUs3-build/setup.py) egg_info for package from git+git://github.com/mila-udem/fuel.git
Traceback (most recent call last):
File "<string>", line 3, in <module>
File "build/bdist.linux-x86_64/egg/setuptools/__init__.py", line 11, in <module>
File "build/bdist.linux-x86_64/egg/setuptools/extern/__init__.py", line 1, in <module>
ImportError: No module named extern
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 3, in <module>
File "build/bdist.linux-x86_64/egg/setuptools/__init__.py", line 11, in <module>
File "build/bdist.linux-x86_64/egg/setuptools/extern/__init__.py", line 1, in <module>
ImportError: No module named extern
----------------------------------------
Cleaning up...
我曾尝试重新安装/更新setuptools但仍然无法正常工作。感谢。
答案 0 :(得分:1)
下载:https://pypi.python.org/pypi/extern/0.1.0
安装:tar zxf extern-0.1.0.tar.gz && python setup.py install
答案 1 :(得分:0)
我在CentOS7上遇到了同样的问题,并通过以下方式解决了问题:
pip install -U extern
如果可以导入模块extern,则可以交叉检查活动的python版本。如果可行,请从下载的easy_install
重建ez_setup.py
。例如/opt/bin/python ez_setup.py
这会将extern
模块包含到easy_install
例程中,并且错误不再显示。
然后运行/opt/bin/easy_install <your.egg>
应该完成这项工作。注意:如果您有多个python版本,请使用您在/usr/bin/