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

报错:

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-install-y9blTg/matplotlib/

报错原因:

matplotlib 3.0不能用于python2

解决办法:

升级python到3

(我的项目必须用python2,要是改成3变动较多,不想改了,于是matplot安装了2.x版本的,不再报错)

你可能感兴趣的:(Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-WuymMP/matplotlib/)