pip2安装matplotlib, scikit-image

1. 问题:

pip2 install matplotlib -i https://pypi.tuna.tsinghua.edu.cn/simple,显示

    Matplotlib 3.0+ does not support Python 2.x, 3.0, 3.1, 3.2, 3.3, or 3.4.
    Beginning with Matplotlib 3.0, Python 3.5 and above is required.
    
    This may be due to an out of date pip.
    
    Make sure you have pip >= 9.0.1.

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


2. 解决:

pip2 install matplotlib==2.2.3 -i https://pypi.tuna.tsinghua.edu.cn/simple

3. 问题:

pip2 install scikit-image==0.13.0 -i https://pypi.tuna.tsinghua.edu.cn/simple,显示

Collecting matplotlib>=1.3.1 (from scikit-image==0.13.0)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/ec/06/def4fb2620cbe671ba0cb6462cbd8653fbffa4acd87d6d572659e7c71c13/matplotlib-3.0.0.tar.gz
    Complete output from command python setup.py egg_info:
    
    Matplotlib 3.0+ does not support Python 2.x, 3.0, 3.1, 3.2, 3.3, or 3.4.
    Beginning with Matplotlib 3.0, Python 3.5 and above is required.
    
    This may be due to an out of date pip.
    
    Make sure you have pip >= 9.0.1.
    ----------------------------------------

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

4. 解决:

升级pip2,见pip升级后不能查看版本,不能安装包

然后

sudo pip2 install scikit-image==0.13.0 -i https://pypi.tuna.tsinghua.edu.cn/simple

即可

 

 

  • 4
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值