python pip : Can't install matplotlib (ConnectTimeoutError)

标签 python python-2.7 matplotlib pip

运行以下命令:

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

最佳答案

检查您的互联网连接。

您似乎无法访问 Internet。不太可能,PyPi 遇到临时问题,您应该稍后尝试连接。

关于 python pip : Can't install matplotlib (ConnectTimeoutError),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36570928/

相关文章:

python - 将外部脚本的结果返回到 VBA

python - O(logN) 中的排序列表计数元素

python - 在 Python-Fu 中,将字符串包装在 N_() 中有何作用?

python - 在 matplotlib 中创建表

python - 在 matplotlib 中,如何在由两组不同数组定义的两条曲线之间进行填充?

python - 将颜色图添加到 add_collection(3d 图中的表面)

python - 使用 Psycopg2 从 Redshift 写入文件抛出异常

python - 使用 python 请求从 oanda V20 Rest api 流式定价

python - 无法使用 python3 在 numpy 中导入名称 'multiarray'

python - argparse 的逗号分隔输入而不是空格分隔输入