首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法在Canopy中安装外部模块

无法在Canopy中安装外部模块
EN

Stack Overflow用户
提问于 2013-10-26 07:31:13
回答 1查看 1.5K关注 0票数 0

我已经将Canopy设置为我的默认python编译器。我想安装scikits模块,目前在Canopy包管理器中不可用。我已经安装了安装工具和指向Canopy安装( easy_install -> Canopy目录)的easy_install,pip。但是我不能使用它们中的任何一个来下载上面的模块。更具体地说,获取scikits.odes会给出以下错误日志:

代码语言:javascript
复制
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呢?

EN

回答 1

Stack Overflow用户

发布于 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命令,然后重试。

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

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/19600956

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档