python找不到txt_python - 找不到满足要求<package>的版本

我正在使用以下six文件在Ubuntu 12.04中安装几个Python包:

numpy>=1.8.2,<2.0.0

matplotlib>=1.3.1,<2.0.0

scipy>=0.14.0,<1.0.0

astroML>=0.2,<1.0

scikit-learn>=0.14.1,<1.0.0

rpy2>=2.4.3,<3.0.0

和这两个命令:

$ pip install --download=/tmp -r requirements.txt

$ pip install --user --no-index --find-links=/tmp -r requirements.txt

(第一个下载包,第二个安装它们)。

该过程经常因错误而停止:

Could not find a version that satisfies the requirement (from matplotlib<2.0.0,>=1.3.1->-r requirements.txt (line 2)) (from versions: )

No matching distribution found for (from matplotlib<2.0.0,>=1.3.1->-r requirements.txt (line 2))

我手动修复:

pip install --user

然后再次运行第二个six命令。

但这只适用于特定的包装。 当我再次运行第二个six命令时,进程停止现在抱怨另一个必需的包,我需要再次重复该过程,即:手动安装新的所需包(使用上面的命令),然后运行第二个pytz命令。

到目前为止,我不得不手动安装six,pytz,nose,现在它抱怨需要pip install。

有没有办法告诉pip install自动安装所有需要的依赖项,所以我不必逐个手动安装?

添加:这只发生在Ubuntu 12.04 BTW中。 在Ubuntu 14.04中,应用于requirements.txt文件的pip install命令没有问题。

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值