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

即可

 

 

你可能感兴趣的:(pytorch)