2017-08-31 182 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