bash: 一键安装pip & 一键设置pip永久镜像

  一键 安装pip设置pip永久镜像bash文件 源码:

echo -e 'Install pip'
sudo apt-get install python-pip
pip install --upgrade pip

echo 'Add permanent mirror'
sudo mkdir /root/.pip
sudo gedit /root/.pip/pip.conf
echo -e '\n[global] trusted-host=pypi.douban.com \nindex-url=http://pypi.douban.com/simple' >>/root/.pip/pip.conf
source /root/.pip/pip.conf


你可能感兴趣的:(Bash)