我已经将Canopy设置为我的默认python编译器。我想安装scikits模块,目前在Canopy包管理器中不可用。我已经安装了安装工具和指向Canopy安装( easy_install -> Canopy目录)的easy_install,pip。但是我不能使用它们中的任何一个来下载上面的模块。更具体地说,获取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对于我进行的其他模块安装尝试,也抛出了类似的错误日志。有什么建议吗?我该如何修复这个明显的bug呢?
发布于 2013-10-26 08:50:47
我怀疑通过安装setuptools,您已经破坏了已经包含在distribute包中的easy_install版本。我已经更新了this article来强调这一点。
请删除您的Canopy用户Python目录,/Users/nick/Library/Enthought/Canopy_64bit/User/并重新启动Canopy以重新创建它,而不会有冲突的setuptools版本。然后从终端使用easy_install pip命令,然后重试。
我不确定这是否足够,但这至少是一个步骤。
https://stackoverflow.com/questions/19600956
复制相似问题