1.修改 ~/.pip/pip.conf (没有就创建一个) vi ~/.pip/pip.conf #向其中添加 [global] index-url = https://pypi.tuna.tsinghua.edu.cn/simple/