Python 报错 Failed to establish a new connection: [Errno 11001] getaddrinfo failed,)
把Python 里的下载镜像换成了清华的,结果在下载时显示报错:
Failed to establish a new connection: [Errno 11001] getaddrinfo failed’,)’:
解决方法:
想起我之前的博文:https://blog.csdn.net/sinat_26811377/article/details/99698807,其实是类似情况。
#
在终端输入以下命令:
pip --default-timeout=100 install 库名称 -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
成功解决!
还没有评论,来说两句吧...