系统相关
首页 > 系统相关> > python-无法在Windows 10上安装pdfminer.six

python-无法在Windows 10上安装pdfminer.six

作者:互联网

在我的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

我对编程很陌生,所以我并不了解.

解决方法:

正如重试错误消息告诉您的那样,这是一个代理问题.您的点子无法通过代理连接到互联网.

尝试将pip –proxy url:port pdfminer.six与url:port用作代理,例如proxy.example.com:8080.

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

标签:python,python-3-x,pip,install,pdfminer
来源: https://codeday.me/bug/20191011/1891134.html