无法使用pip安装matplotlib [英] Unable to install matplotlib using pip

查看:115
本文介绍了无法使用pip安装matplotlib的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是建立了一台PC,我一直在尝试使用pip在其上安装matplotlib,但由于某些原因,我一直收到此错误

I just build a pc and I have been trying to install matplotlib on it using pip, but for some reason I keep getting this error

Command "python setup.py egg_info" failed with error code 1

我在Windows 10上,使用的是python 2.7,我使用

I am on windows 10, using python 2.7 and I use

pip install matplotlib

这是否发生在其他任何人身上,我需要怎么做才能解决?当我尝试安装熊猫时,它也会执行此操作.

Has this happened to anyone else, and what do I need to do to fix it? It also does this when I try to install pandas as well.

谢谢!

推荐答案

您可能没有正确安装setuptools,或者可能未升级它.首先尝试

You might not have installed setuptools correctly, or it may not be upgraded. Try this first

pip install --upgrade setuptools

然后尝试使用pip,否则有时pip2/3也可能会起作用.

And then, try with pip, or sometimes pip2/3 also might work.

pip install matplotlib
pip2 install matplotlib

另一方面,您真的应该在发布问题之前先尝试搜索错误,因为这已经发生在

On another note, you should really try to search your error before you post a question, since this has happened before, Python pip install gives "Command "python setup.py egg_info" failed with error code 1"

这篇关于无法使用pip安装matplotlib的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆