pip安装包出现 Command "python setup.py egg_info" failed with error code 1 错误

描述:
在python2.7环境下,使用最新的pip(18.1)安装ipython,出现以下错误消息:

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-F9ixVH/ipython/

解决:
仔细查看报错原因,发现以下信息:

    IPython 7.0+ supports Python 3.5 and above.
    When using Python 2.7, please install IPython 5.x LTS Long Term Support version.
    Python 3.3 and 3.4 were supported up to IPython 6.x.

python2.7最高只能支持ipython5.x版本。
在pypi上查看ipython的历史版本,然后输入:

pip install ipython=5.8.0

可以先输入以下命令

pip install ipython==6.x

然后可以查看可以安装的ipython版本有哪些

Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting ipython6.x
Could not find a version that satisfies the requirement ipython
6.x (from versions: 0.10, 0.10.1, 0.10.2, 0.11, 0.12, 0.12.1, 0.13, 0.13.1, 0.13.2, 1.0.0, 1.1.0, 1.2.0, 1.2.1, 2.0.0, 2.1.0, 2.2.0, 2.3.0, 2.3.1, 2.4.0, 2.4.1, 3.0.0, 3.1.0, 3.2.0, 3.2.1, 3.2.2, 3.2.3, 4.0.0, 4.0.1, 4.0.2, 4.0.3, 4.1.0, 4.1.1, 4.1.2, 4.2.0, 4.2.1, 5.0.0, 5.1.0, 5.2.0, 5.2.1, 5.2.2, 5.3.0, 5.4.0, 5.4.1, 5.5.0, 5.6.0, 5.7.0, 5.8.0, 6.0.0, 6.1.0, 6.2.0, 6.2.1, 6.3.0, 6.3.1, 6.4.0, 6.5.0, 7.0.0, 7.0.1, 7.1.0, 7.1.1, 7.2.0)
No matching distribution found for ipython==6.x

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值