【问题标题】:CANNOT Install external modules in Canopy不能在 Canopy 中安装外部模块
【发布时间】:2013-10-25 23:31:13
【问题描述】:

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

我进行的其他模块安装尝试引发了类似的错误日志。 有什么建议么?如何修复这个明显的错误?

【问题讨论】:

    标签: python enthought scikits canopy


    【解决方案1】:

    我怀疑通过安装setuptools,您损坏了easy_install 的版本,该版本已包含在Canopy 的distribute 包中。我已更新 this article 以强调这一警告。

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

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

    【讨论】:

    • 好吧,在 /Users/nick/Library/Enthought/Canopy_64bit/User/ 上运行 rm -r,然后我重新启动了 Canopy。然后我在终端中运行“pip install scikits.odes”。仍然无法安装包。错误报告超出了字符数限制。您能给我另一种发送方式吗?
    • 您并没有说您按照建议运行了“easy_install pip”。如果没有,您仍然会使用错误的点子。如果不是这样,您可以向 support@enthought.com 发送错误报告
    • 你是对的!现在安装需要一个fortran编译器。虽然我已经安装了 g95 Gnu 编译器和 gcc,但我怎样才能让它对安装过程“可见”?
    猜你喜欢
    • 2014-09-20
    • 2013-04-18
    • 1970-01-01
    • 1970-01-01
    • 2013-04-22
    • 1970-01-01
    • 2014-07-06
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多