使用pip 安装python 库时连接国外库时,下载需要很长时间,在配置文件中设置国内镜像可以提高速度。
在linux 下创建 ~/.pip/pip.conf 文件。文件内容如下
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
[install]
trusted-host=mirrors.aliyun.com
使用pip 安装python 库时连接国外库时,下载需要很长时间,在配置文件中设置国内镜像可以提高速度。
在linux 下创建 ~/.pip/pip.conf 文件。文件内容如下
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
[install]
trusted-host=mirrors.aliyun.com