Ubuntu pip3 pip使用清华源

Ubuntu pip3 pip使用清华源

  • 前言
  • 临时修改
  • 永久修改

前言

用pip或者pip3的时候安装非常的慢,我们改为国内清华的源。

临时修改

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple 安装的包

永久修改

先更新升级 pip 到最新的版本 (>=10.0.0) 后进行配置:

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

OK现在就好了试一下速度有没有变快

你可能感兴趣的:(Ubuntu)