使用pip安装包时发生异常。我试着安装纽比,烧瓶和其他的。但在错误之下。
C:\Users\ABC>pip install flask
Collecting flask
Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x0667CB50>: Failed to establish a new connection: [Errno 11002] getaddrinfo failed')': /simple/flask/
Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x0667C190>: Failed to establish a new connection: [Errno 11002] getaddrinfo failed')': /simple/flask/
Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x0667C7F0>: Failed to establish a new connection: [Errno 11002] getaddrinfo failed')': /simple/flask/
Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x0667C8F0>: Failed to establish a new connection: [Errno 11002] getaddrinfo failed')': /simple/flask/
Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x0667C0F0>: Failed to establish a new connection: [Errno 11002] getaddrinfo failed')': /simple/flask/
Could not find a version that satisfies the requirement flask (from versions: )
No matching distribution found for flask
请帮忙解决。 Pip版本是18.1 Python版本是3.7
对于当前版本v1.0.2Python 3.7is not supported yet。它的支持确实存在于master branch中,但尚未发布。
好吧,这是一个黑客,我总是遵循,但每次工作-我需要,因为我的公司网络背后是沉重的分层安全。
每次需要安装pip pkgs时,请事先从cmd中运行以下命令(不需要管理员身份):
然后运行通常的pip命令。
如果pip抛出一些SSL信任/解析错误。您还可以通过网络执行以下操作来信任pip:
使用以下命令仅在当前用户下安装软件包(这不需要管理员权限)
你的“f”应该是“f”:
相关问题 更多 >
编程相关推荐