我正在尝试安装一个python库openpyxl。我刚在我的Windows10工作计算机上安装了Python3.6。我的安装尝试的结果如下。
我发现了一个相关的问题:pip install and custom index url
如果我的问题是使用代理,那么我是否可以做些什么来安装openpyxl?
C:\Users\00168070>pip install openpyxl
Collecting openpyxl Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError>(': Failed to establish a new connection: [Errno 11002] getaddrinfo failed',)': /simple/openpyxl/
Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 11002] getaddrinfo failed',)': /simple/openpyxl/
Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 11002] getaddrinfo failed',)': /simple/openpyxl/
Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 11002] getaddrinfo failed',)': /simple/openpyxl/
Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 11002] getaddrinfo failed',)': /simple/openpyxl/
Could not find a version that satisfies the requirement openpyxl (from versions: )
No matching distribution found for openpyxl
您的本地网络状态似乎无法解析主机名。也许你可以尝试从源代码安装,下面是我的步骤:
1:下载源代码:
2:生成并安装:
3:输出:
4:导入和使用:
相关问题 更多 >
编程相关推荐