centos7 pip 使用

  • pip源换成国内的

新建 ~/.pip/pip.con 文件, 使用清华的pip源

[global]
index-url= https://pypi.tuna.tsinghua.edu.cn/simple 

[install]
trusted-host=pypi.tuna.tsinghua.edu.cn
  • pip 安装/更新命令
sudo pip install --upgrade pip 

sudo pip install tornado==4.2.0

sudo pip install --upgrade pyudev>=0.16.1

sudo pip install  --ignore-installed requests==2.17.3

猜你喜欢

转载自blog.csdn.net/qq_26437925/article/details/81097055