anaconda集成了哪些python模块_Anaconda:安装Python模块

我刚刚在Mac OSX Yosemite上安装了Anaconda,我已经启动并运行,包括Python,虽然我认为当我尝试“pip安装”新模块时,我的路径出了问题 .

“which python”和“which pip”命令都指向我的Anaconda文件夹 . 此外,执行“pip install webbpsf”似乎已经完成但是模块没有出现在“conda列表”中,也没有在我运行脚本时导入它(ImportError:没有名为webbpsf的模块) .

我尝试使用“python setup.py install”手动安装webbpsf模块(从下载的模块目录),但我收到一个错误,我认为是指向问题的根源,即/ username / py-lib /路径 . 见下文:

Checking .pth file support in /username/py-lib/

/username/anaconda/bin/python -E -c pass

TEST FAILED: /username/py-lib/ does NOT support .pth files

error: bad install directory or PYTHONPATH

You are attempting to install a package to a directory that is not

on PYTHONPATH and which Python does not read ".pth" files from. The

installation directory you specified (via --install-dir, --prefix, or

the distutils default setting) was:

/username/py-lib/

and your PYTHONPATH environment variable currently contains:

'/username/anaconda/lib/python2.7/site-packages'

Here are some of your options for correcting the problem:

* You can choose a different installation directory, i.e., one that is

on PYTHONPATH or supports .pth files

* You can add the installation directory to the PYTHONPATH environment

variable. (It must then also be on PYTHONPATH whenever you run

Python and want to use the package(s) you are installing.)

* You can set up the installation directory to support ".pth" files by

using one of the approaches described here:

https://pythonhosted.org/setuptools/easy_install.html#custom-installation-locations

我挖得很深,试图找到这个/ py-lib / path设置的位置和方式,我查看推荐的链接无济于事 . 我在这里想念的是什么?

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值