1、mkdir ~/.pip 2、touch pip.conf 3、修改pip.conf 为 [global] index-url = https://pypi.tuna.tsinghua.edu.cn/simple ok!