修改为清华大学的镜像源,并置为可信(阿里云的好像有点问题但不知到出在哪里)
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>
求求路过的老爷给个免费的赞,如果有帮助的话
|