[英]CANNOT Install external modules in Canopy
我已经将Canopy设置为默认的python编译器。 我要安装scikits模块,目前在Canopy软件包管理器中不可用。 我已经安装了安装工具和easy_install,pip指向Canopy安装(哪个easy_install-> Canopy目录)。 但是我不能使用它们中的任何一个来下载上述任何模块。 更具体地说,获取scikits.odes会给我以下错误日志:
Cleaning up...
Removing temporary dir /private/var/folders/b3/cvy2g4393534zjsrgxgnmvch0000gn/T/pip_build_nick...
Command python setup.py egg_info failed with error code 1 in /private/var/folders/b3/cvy2g4393534zjsrgxgnmvch0000gn/T/pip_build_nick/scikits.odes
Exception information:
Traceback (most recent call last):
File "/Users/nick/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/pip-1.4.1-py2.7.egg/pip/basecommand.py", line 134, in main
status = self.run(options, args)
File "/Users/nick/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/pip-1.4.1-py2.7.egg/pip/commands/install.py", line 236, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File "/Users/nick/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/pip-1.4.1-py2.7.egg/pip/req.py", line 1134, in prepare_files
req_to_install.run_egg_info()
File "/Users/nick/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/pip-1.4.1-py2.7.egg/pip/req.py", line 259, in run_egg_info
command_desc='python setup.py egg_info')
File "/Users/nick/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/pip-1.4.1-py2.7.egg/pip/util.py", line 670, in call_subprocess
% (command_desc, proc.returncode, cwd))
InstallationError: Command python setup.py egg_info failed with error code 1 in /private/var/folders/b3/cvy2g4393534zjsrgxgnmvch0000gn/T/pip_build_nick/scikits.odes
对于我进行的其他模块安装尝试,抛出了类似的错误日志。 有什么建议么? 我该如何解决这个明显的错误?
我怀疑通过安装setuptools
,您破坏了已经包含在Canopy distribute
包中的easy_install
版本。 我更新了这篇文章以强调此警告。
请删除您的Canopy用户Python目录/Users/nick/Library/Enthought/Canopy_64bit/User/
然后重新启动Canopy以重新创建它,而不会出现setuptools版本冲突的情况。 然后从终端easy_install pip
,然后重试。
我不确定是否足够,但这至少是一个步骤。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.