无法在python中使用pip install安装软件包

问题描述 投票:-1回答:1

当我尝试在python中通过pip install命令安装软件包时,它会显示以下错误:

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

它为我尝试安装的任何包显示相同的错误。任何帮助表示赞赏。

python python-3.x pip install
1个回答
0
投票

这是没有互联网连接时来自pip的标准错误消息。如果你这样做

ping google.com

你可能会发现你的连接有问题。解决这些问题,pip应该开始工作。

© www.soinside.com 2019 - 2024. All rights reserved.