Created
December 3, 2018 07:16
-
-
Save MaHu6/228fe96b2b81c677ae5c950a6b8d55c4 to your computer and use it in GitHub Desktop.
set pip Ali source
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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