0

我已将 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

对于我所做的其他模块安装尝试,也抛出了类似的错误日志。有什么建议么?我该如何解决这个明显的错误?

4

1 回答 1

0

我怀疑通过安装setuptools,您已经损坏了包easy_install中已经包含的版本,该distribute包是 Canopy 的一部分。我更新了这篇文章以强调这种谨慎。

请删除您的 Canopy 用户 Python 目录,/Users/nick/Library/Enthought/Canopy_64bit/User/然后重新启动 Canopy 以重新创建它,而不会出现 setuptools 的冲突版本。然后easy_install pip从终端,再试一次。

我不确定这是否足够,但这至少是一个步骤。

于 2013-10-26T00:50:46.600 回答