Ubuntu 配置 pip.conf 添加国内源
Ubuntu 配置 pip.conf 添加国内源 对于conda,添加安装包的镜像: conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/ conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/ conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/ conda config --set show_channel_urls yes 对于pip,添加安装包的镜像: 1. 新建文件夹和pip配置文件 cd ~ mkdir .pip touch pip.conf sudo chmod 755 pip.conf gedit pip.conf 其他的配置位置: Linux/Unix: /etc/pip.conf ~/.pip/pip.conf ~/.config/pip/pip.conf Mac OSX: ~/Library/Application Support/pip/pip.conf ~/.pip/pip.conf /Library