2017-10-15 44 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,它有關於點和代理的更多答案。