There was a problem with pip install and I couldn't connect... (pip configure the mirror source)

How to use mirror sources

1. Create a new pip folder in C:\Users\ma_pe\, and then create a new pip.ini file

 

2 Create a new pip.ini configuration file in the pip folder (create a new pip.txt and then change the suffix)
insert image description here


3 Open pip.ini and copy the following content into it 

[global]
index-url=http://pypi.douban.com/simple/
[install]  
trusted-host=pypi.douban.com
disable-pip-version-check = true  
timeout = 6000

 Then you can start using it, very fast.

 

Guess you like

Origin blog.csdn.net/weixin_43135178/article/details/124313121