修改为清华大学的镜像源,并置为可信(阿里云的好像有点问题但不知到出在哪里)
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn
PS D:Python_projectCycle-Gan> pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn
Writing to C:Userslove_meAppDataRoamingpippip.ini
#下面这行代码是查看镜像源修了没
PS D:Python_projectCycle-Gan> pip -v config list
For variant 'global', will try loading 'C:ProgramDatapippip.ini'
For variant 'user', will try loading 'C:Userslove_mepippip.ini'
For variant 'user', will try loading 'C:Userslove_meAppDataRoamingpippip.ini'
For variant 'site', will try loading 'D:environmentspython310pip.ini'
global.index-url='https://pypi.tuna.tsinghua.edu.cn/simple'
PS D:Python_projectCycle-Gan>
求求路过的老爷给个免费的赞,如果有帮助的话