换源:
pip install -i http://pypi.douban.com/simple/ numpy
pip install -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com #此参数“--trusted-host”表示信任,如果上一个提示不受信任,就使用这个
#根据依赖包文件列表下载
pip3 install -r requirements.txt -i http://mirrors.aliyun.com/pypi/simple --trusted-host mirrors.aliyun.com
自定义安装位置:
pip install --target=d:\somewhere\other\than\the\default package_name