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版本的,不再报错)

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。