Skip to content

Instantly share code, notes, and snippets.

@schnell18
Last active January 19, 2024 10:53
Show Gist options
  • Save schnell18/d0ed716917905d2c142a370906cfa32f to your computer and use it in GitHub Desktop.
Save schnell18/d0ed716917905d2c142a370906cfa32f to your computer and use it in GitHub Desktop.
setup pip mirror in China
mkdir ~/.pip
cat <<EOF > ~/.pip/pip.conf
[global]
trusted-host = mirrors.aliyun.com
index-url = http://mirrors.aliyun.com/pypi/simple
EOF
@LipingMao
Copy link

mkidr ~/.pip -> mkdir ~/.pip

;-)

@ykfq
Copy link

ykfq commented Dec 10, 2019

mkdir ~/.pip
cat <<EOF > ~/.pip/pip.conf
 [global]
 index-url = https://mirrors.aliyun.com/pypi/simple/
EOF

@maltebeckmann
Copy link

Awesome, thanks!

@ettingshausen
Copy link

pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/

@sg552
Copy link

sg552 commented Jul 17, 2023

@ettingshausen thanks a lot !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment