当前位置:网站首页>Change PIP mirror source

Change PIP mirror source

2022-06-27 10:16:00 Is it far? My Shangri La

Default image source

The default image source :https://pypi.org/.
Visit domestic and overseas websites , Slow download speed , The small bag has no effect , But the next dozen M Your emergency bag will kill you , Change to domestic image source , Can increase the download speed .
The first two days numpy When , Replace the image source with a domestic one , Failed twice , Later, I changed the source , A success .

Configure image source

1. Enter the user's home directory

win+R Shortcut key , Input :“.” or “%USERPROFILE%”

2. establish “pip.ini” file

Create... In the user's home directory “pip.ini” file

3. Configure image source

stay “pip.ini” Configure the image source in ( China University of science and technology ):

[global]
index-url=https://pypi.mirrors.ustc.edu.cn/simple/
trusted-host=pypi.mirrors.ustc.edu.cn

Reference link

Python change pip An example of how to mirror a source _ Script house

原网站

版权声明
本文为[Is it far? My Shangri La]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/178/202206270915008161.html