pip permanently modify the installation source

A one-time modification method

https://blog.csdn.net/sereasuesue/article/details/104095459

If you want to configure as the default source, as follows:
the need to create or modify configuration files (usually created),
Linux files in ~ / the .pip / pip.conf,
Windows in% HOMEPATH% \ pip \ pip.ini) ,
modify the content as follows:

[global]index-url = http://pypi.douban.com/simple[install]trusted-host=pypi.douban.com

 
Thus during use pip to install, it will call the default image.
 

 Myth: windows are generally written in% HOMEPATH% \ pip \ pip.ini), then see my environment configuration found no HOMEPATH, I found pip add a profile in the local Python installation configuration, with the installation package or pip the default file is not found with the use

The right way

Open your c drive find the user clicks the name of the new file pip New Profile

Modify the content as follows:

[global]index-url = http://pypi.douban.com/simple[install]trusted-host=pypi.douban.com

Address try to download dlib found that the use of modified

Published 100 original articles · won praise 18 · views 30000 +

Guess you like

Origin blog.csdn.net/sereasuesue/article/details/104182572