配置pip源
配置阿里云镜像源
pip config set global.index-url http://mirrors.aliyun.com/pypi/simple/
pip config set install.trusted-host mirrors.aliyun.com
临时安装指定镜像源
pip install -i
例如
pip install -i https://pypi.doubanio.com/simple --trusted-host pypi.doubanio.com selenium
pip install numpy -i https://pypi.tuna.tsinghua.edu.cn/simple