Last active
January 19, 2024 10:53
-
-
Save schnell18/d0ed716917905d2c142a370906cfa32f to your computer and use it in GitHub Desktop.
setup pip mirror in China
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
mkdir ~/.pip | |
cat <<EOF > ~/.pip/pip.conf | |
[global] | |
trusted-host = mirrors.aliyun.com | |
index-url = http://mirrors.aliyun.com/pypi/simple | |
EOF |
mkdir ~/.pip
cat <<EOF > ~/.pip/pip.conf
[global]
index-url = https://mirrors.aliyun.com/pypi/simple/
EOF
Awesome, thanks!
pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/
@ettingshausen thanks a lot !
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
mkidr ~/.pip -> mkdir ~/.pip
;-)