运行以下命令:
pip install matplotlib --disable-pip-version-check
提供以下输出:
Collecting matplotlib
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'ConnectTimeoutError(<pip
._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x02D9D0F0>, 'Connection to pypi.python.
org timed out. (connect timeout=15)')': /simple/matplotlib/
Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'ConnectTimeoutError(<pip
._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x02D9DE70>, 'Connection to pypi.python.
org timed out. (connect timeout=15)')': /simple/matplotlib/
Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'ConnectTimeoutError(<pip
._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x02D9D890>, 'Connection to pypi.python.
org timed out. (connect timeout=15)')': /simple/matplotlib/
Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'ConnectTimeoutError(<pip
._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x02D9D8D0>, 'Connection to pypi.python.
org timed out. (connect timeout=15)')': /simple/matplotlib/
Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'ConnectTimeoutError(<pip
._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x02D9DD90>, 'Connection to pypi.python.
org timed out. (connect timeout=15)')': /simple/matplotlib/
Could not find a version that satisfies the requirement matplotlib (from versions: )
No matching distribution found for matplotlib
非常简单的方法一步一步:
从http://www.lfd.uci.edu/~gohlke/pythonlibs/下载
matplotlib(.whl)
matplotlib还需要
numpy
、dateutil
、pytz
、pyparsing
、cycler
、setuptools
过程: 打开>;python27>;>;脚本>;复制并粘贴matplotlib.whlfile
打开python27上的命令>;脚本>;
pip install matplotlib-1.5.1-cp27-none win_amd64.whl
我认为这是最简单的安装方法。 如果你再遇到同样的问题就试试,然后打电话给我。
检查您的互联网连接。
你似乎无法上网。不太可能,PyPi遇到临时问题,您应该稍后尝试连接。
另一个可能的解决方案-我找到了一个可执行的安装程序here
以前在谷歌上找不到。
相关问题 更多 >
编程相关推荐