一次性: pip install some-package -i https://pypi.tuna.tsinghua.edu.cn/simple
永久:
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
一些常用的国内源 URL 包括:
清华大学 TUNA 镜像站: https://pypi.tuna.tsinghua.edu.cn/simple/
阿里云镜像: https://mirrors.aliyun.com/pypi/simple/
中国科技大学镜像: https://pypi.mirrors.ustc.edu.cn/simple/