我正在尝试安装一个python库,openpyxl . 我刚刚在我的Windows 10工作计算机上安装了python 3.6 . 我的安装尝试的结果如下 .
我找到了一个相关的问题:pip install and custom index url
如果我的问题是使用代理,那么我还能做些什么来安装openpyxl?
C:\ Users \ 00168070> pip install openpyxl收集openpyxl重试(重试(总计= 4,连接=无,读取=无,重定向=无))连接被'NewConnectionError>打破后(':无法 Build 新连接:[Errno 11002] getaddrinfo failed','':/ simple / openpyxl / Retrying(重试(total = 3,connect = None,read = None,redirect = None))连接被'NewConnectionError(':无法 Build )连接后一个新的连接:[Errno 11002] getaddrinfo failed','':/ simple / openpyxl / Retrying(Retry(total = 2,connect = None,read = None,redirect = None))连接被'NewConnectionError(')破坏后:无法 Build 新连接:[Errno 11002] getaddrinfo failed',)':/ simple / openpyxl /重试(重试(total = 1,connect = None,read = None,redirect = None))连接被'NewConnectionError破坏后(':无法 Build 新连接:[Errno 11002] getaddrinfo failed',)':/ simple / openpyxl /重试(重试(total = 0,connect = None,read = None,redirect = None))连接断开后由'NewC onnectionError(':无法 Build 新连接:[Errno 11002] getaddrinfo failed',)':/ simple / openpyxl /找不到满足要求的版本openpyxl(来自版本:)没有找到匹配的openpyxl发行版
1 回答
您的本地网络状态似乎无法解析主机名 . 也许你可以尝试从源代码安装,下面是我的步骤:
1:下载源代码:
2:构建和安装:
3:输出:
4:导入和使用: