2017-08-31 233 views
-2

我試着安裝python-docx軟件包,並得到下面的錯誤。無法安裝Python-docx軟件包

C:\Program Files\Anaconda3\Scripts>pip install python-docx 

Collecting python-docx 
    Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x000001E9A398CD68>: Failed to establish a new connection: [Errno 11002] getaddrinfo failed',)': /simple/python-docx/ 

Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x000001E9A398C240>: Failed to establish a new connection: [Errno 11002] getaddrinfo failed',)': /simple/python-docx/ 

Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x000001E9A398C828>: Failed to establish a new connection: [Errno 11002] getaddrinfo failed',)': /simple/python-docx/ 

Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x000001E9A398C438>: Failed to establish a new connection: [Errno 11002] getaddrinfo failed',)': /simple/python-docx/ 

Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x000001E9A39819B0>: Failed to establish a new connection: [Errno 11002] getaddrinfo failed',)': /simple/python-docx/ 
    Could not find a version that satisfies the requirement python-docx (from versions:) 
No matching distribution found for python-docx 

回答

0

做「其中點子」上你的CMD 你會得到PIP的路徑(PIP路徑) 那麼做,「PIP路徑安裝包」,或者你可以直接使用「暢達安裝包名」 因爲你有anaconda。

0

我唯一的想法是,點有錯誤的網站,它無法連接到該頁面,因此無法下載該軟件包。所以也許嘗試直接從網站上下載它:https://pypi.python.org/pypi /python-docx。希望我幫助。

-Zeus