【问题标题】:Can't install pdfminer.six on Windows 10无法在 Windows 10 上安装 pdfminer.six
【发布时间】:2019-05-08 09:51:20
【问题描述】:

在我的 cmd 窗口中,我输入了

pip install pdfminer.six

它给了我这些错误。

Microsoft Windows [Version 10.0.15063]
(c) 2017 Microsoft Corporation. All rights reserved.

C:\Users\Eric Kim>pip install pdfminer.six
Collecting pdfminer.six
  Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x04435730>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed',))': /simple/pdfminer-six/
  Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x04435870>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed',))': /simple/pdfminer-six/
  Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x04435410>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed',))': /simple/pdfminer-six/
  Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x044355D0>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed',))': /simple/pdfminer-six/
  Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x04435150>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed',))': /simple/pdfminer-six/
  Could not find a version that satisfies the requirement pdfminer.six (from versions: )
No matching distribution found for pdfminer.six

我在 Windows 10 上使用 Python 3.6。我该怎么办?有什么方法可以在不使用 pip 的情况下安装这个包?我想用这个链接:https://pypi.python.org/pypi/pdfminer.six/20170720

我对编程很陌生,所以我不太了解。

【问题讨论】:

    标签: python python-3.x pip installation pdfminer


    【解决方案1】:

    这是一个代理问题,正如重试错误消息告诉您的那样。您的 pip 未通过代理连接到互联网。

    尝试使用pip --proxy url:port pdfminer.sixurl:port 连接您的代理,例如proxy.example.com:8080.

    如果这不起作用,请尝试使用另一个没有代理的 Internet 连接通过 pip 安装软件包,或查看此thread,其中包含有关 pip 和代理的更多答案。

    【讨论】:

      猜你喜欢
      • 2018-11-30
      • 2020-11-02
      • 2020-05-03
      • 2021-06-18
      • 2017-05-12
      • 2017-01-25
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多