pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn
PS D:\Python_project\Cycle-Gan> pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn
Writing to C:\Users\love_me\AppData\Roaming\pip\pip.ini
#下面这行代码是查看镜像源修了没
PS D:\Python_project\Cycle-Gan> pip -v config list
For variant 'global', will try loading 'C:\ProgramData\pip\pip.ini'
For variant 'user', will try loading 'C:\Users\love_me\pip\pip.ini'
For variant 'user', will try loading 'C:\Users\love_me\AppData\Roaming\pip\pip.ini'
For variant 'site', will try loading 'D:\environments\python310\pip.ini'
global.index-url='https://pypi.tuna.tsinghua.edu.cn/simple'
PS D:\Python_project\Cycle-Gan>