在home下建立一个.pip的文件夹,在文件夹内新建一个pip.ini的文件,并在其中存入以下,即完成换源. [global] index-url = https://pypi.tuna.tsinghua.edu.cn/simple