我已将Canopy设置为我的默认python编译器。 我想安装scikits模块,目前在Canopy Package Manager中不可用。我已经安装了安装工具和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
我为其他模块安装尝试抛出了类似的错误日志。 有什么建议?我该如何修复这个明显的错误?
答案 0 :(得分:0)
我怀疑通过安装setuptools
,您已损坏已包含在easy_install
包中的distribute
版本,该版本是Canopy的一部分。我已更新this article以强调此警告。
请删除您的Canopy用户Python目录/Users/nick/Library/Enthought/Canopy_64bit/User/
并重新启动Canopy以重新创建它而不会出现冲突版本的setuptools。然后从终端easy_install pip
,再试一次。
我不确定这是否足够,但它至少会是一个步骤。