Skip to content

Instantly share code, notes, and snippets.

@MaHu6
Created December 3, 2018 07:16
Show Gist options
  • Save MaHu6/228fe96b2b81c677ae5c950a6b8d55c4 to your computer and use it in GitHub Desktop.
Save MaHu6/228fe96b2b81c677ae5c950a6b8d55c4 to your computer and use it in GitHub Desktop.
set pip Ali source
if [ -d ~/.pip ];
then
echo "~/.pip exist"
else
mkdir ~/.pip
fi
cd ~/.pip/
echo "[global]" > pip.conf
echo "index-url = https://mirrors.aliyun.com/pypi/simple/" >> pip.conf
echo "[install]" >> pip.conf
echo "trusted-host=mirrors.aliyun.com" >> pip.conf
echo "" >> pip.conf
echo "set pip source done"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment