【日常踩坑】解决 pip 安装第三方包时因 SSL 报错

2024-11-13 09:03:33 阅读:3 编辑

https://blog.csdn.net/CoolBoySilverBullet/article/details/123365452

如果想永久使用镜像站,则需要修改配置文件,以 Linux 为例:

vim ~/.pip/pip.conf

修改文件内容如下

[global]
index-url = http://mirrors.aliyun.com/pypi/simple/

[install]
trusted-host = mirrors.aliyun.com