pip换源

pip源更改至清华、阿里镜像,以提高安装速度以及成功率

临时使用:

可以在使用pip的时候加参数-i https://pypi.tuna.tsinghua.edu.cn/simple

例如:pip install -i https://pypi.tuna.tsinghua.edu.cn/simple sklearn,这样就会从清华这边的镜像去安装sklearn库。

阿里源地址为:

https://mirrors.aliyun.com/pypi/simple

全局设置换源

pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple

  

生前无需久睡,死后自会长眠,努力解决生活中遇到的各种问题,不畏将来,勇敢面对,加油,你是最胖的,哈哈哈
原文地址:https://www.cnblogs.com/panshao51km-cn/p/13378574.html