Python安装模块报一大串错误或者下载速度过慢

如果你之前有安装成功过,则极大原因是网络问题导致的下载失败

1-你可以点击网址将模块的zip文件下载下来,再使用命令进行本地安装(不过有点麻烦,看第2点)

在这里插入图片描述

2-使用镜像地址或更改镜像地址(你用的是镜像的话)

3-命令如下:

pip install 模块名 -i https://mirrors.aliyun.com/pypi/simple/

在这里插入图片描述

4-如果还不行,这边还有几个镜像地址:

豆瓣:http://pypi.doubanio.com/simple/

阿里云:https://mirrors.aliyun.com/pypi/simple/

清华:https://pypi.tuna.tsinghua.edu.cn/simple/

猜你喜欢

转载自blog.csdn.net/SiShen654/article/details/108471237