Python 报错 Failed to establish a new connection: [Errno 11001] getaddrinfo failed,)

素颜马尾好姑娘i 2023-03-13 15:24 129阅读 0赞

把Python 里的下载镜像换成了清华的,结果在下载时显示报错:

Failed to establish a new connection: [Errno 11001] getaddrinfo failed’,)’:


解决方法:

想起我之前的博文:https://blog.csdn.net/sinat_26811377/article/details/99698807,其实是类似情况。

#

在终端输入以下命令:

  1. pip --default-timeout=100 install 库名称 -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com

成功解决!

发表评论

表情:
评论列表 (有 0 条评论,129人围观)

还没有评论,来说两句吧...

相关阅读