Replace the source of pip in the windows environment

Replace the source of pip in the windows environment

When using pip, the network speed is often too slow. We can speed up the download speed of the package by changing the source address.

1. Find the path under the system disk [User] [your own username]
C:\Users\lv

2. Then create a folder named: pip

3. Create another file pip.ini in the pip folder

Enter the following content in the file:
replace Tsinghua source

[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
[install]
trusted-host=pypi.tuna.tsinghua.edu.cn

Then use your pip to install and transfer, and you will find that it is much faster

Guess you like

Origin blog.csdn.net/weixin_42213421/article/details/121539613