Windows下pip使用清华源
一、下列内容更换成批处理,直接运行即可
@echo off md "C:\Users\Administrator\AppData\pip" echo [global] >C:\Users\Administrator\AppData\pip\pip.ini echo index-url = https://pypi.tuna.tsinghua.edu.cn/simple >>C:\Users\Administrator\AppData\pip\pip.ini echo trusted-host = pypi.tuna.tsinghua.edu.cn >>C:\Users\Administrator\AppData\pip\pip.ini pause