【问题标题】:Not able to install python modules无法安装python模块
【发布时间】:2019-07-07 02:56:59
【问题描述】:

在安装 python 模块时,我得到了:

C:\Users\sesa384714>python -m pip install matplotlib
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 0x0408BE30>, '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 0x0408B310>, '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 0x0408B650>, '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 0x0408B410>, '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 0x0408B530>, '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

【问题讨论】:

  • 您的互联网连接正常吗?
  • 你有哪个版本的 Python?
  • 看起来您位于阻止您与 pypi.python.org 连接的防火墙后面
  • 安装的Python版本是3.6.2

标签: python python-3.x python-2.7 numpy matplotlib


【解决方案1】:

当您的互联网连接速度较慢时,有时会出现此类错误,请检查您的互联网连接 或离线尝试
https://pypi.org/project/matplotlib/#files

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2020-09-19
    • 1970-01-01
    • 2020-10-23
    • 2017-05-30
    • 2018-11-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多