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

本文介绍了解决在Python 2.7环境下安装ipython遇到的错误的方法,由于ipython 6.0及以上版本不再支持Python 2.7,文中推荐安装5.x LTS版本。

在虚拟环境virtualenv中安装ipython时出现Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-GVQWxt/ipython/的错误, python版本2.7

(.env) ...$ pip install ipython
Collecting ipython
  Downloading https://pypi.doubanio.com/packages/fa/50/974211502bd72873728d44c3013fe79875c819c8fb69f778bcfd67bc7d38/ipython-6.2.1.tar.gz (5.1MB)
    100% |████████████████████████████████| 5.1MB 4.0MB/s 
    Complete output from command python setup.py egg_info:
    
    IPython 6.0+ does not support Python 2.6, 2.7, 3.0, 3.1, or 3.2.
    When using Python 2.7, please install IPython 5.x LTS Long Term Support version.
    Beginning with IPython 6.0, Python 3.3 and above is required.
    
    See IPython `README.rst` file for more information:
    
        https://github.com/ipython/ipython/blob/master/README.rst
    
    Python sys.version_info(major=2, minor=7, micro=13, releaselevel='final', serial=0) detected.
    
    
    
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-GVQWxt/ipython/

解决(原因是新版的ipython只支持python3.4以上版本):

(.env) ...$ pip install ipython==5.5.0



评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值