我是励志哥

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

  

posted @ 2020-07-25 22:28  python黑客编程  阅读(281)  评论(0编辑  收藏  举报