2017-10-15 107 views
2

安装pdfminer.six在我cmd窗口,我输入不能在Windows 10

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

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

回答

1

这是一个代理问题,因为重试错误消息告诉你。您的点不通过代理连接到互联网。

尝试pip --proxy url:port pdfminer.sixurl:port让您的代理服务器受阻proxy.example.com:8080

如果这不起作用,请尝试使用另一个没有代理的互联网连接来通过pip安装软件包,或者看看这个thread,它有关于点和代理的更多答案。