前言
记录一下自己一直在用的pip和conda的镜像以及安装本地下载好的包。
1、pip
安装TensorFlow包代码如下(示例):
//豆瓣pip镜像:
pip install tensorflow -i https://pypi.douban.com/simple
2.conda
代码如下(示例):
//北外conda镜像:
conda config --add channels https://mirrors.bfsu.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.bfsu.edu.cn/anaconda/pkgs/main/
conda config --add channels https://mirrors.bfsu.edu.cn/anaconda/cloud/conda-forge
conda config --add channels https://mirrors.bfsu.edu.cn/anaconda/cloud/msys2/
conda config --set show_channel_urls yes
conda config --add channels https://mirrors.bfsu.edu.cn/anaconda/cloud/pytorch/
3.安装本地下载好的包
代码如下(示例):
conda install --use-local 包名.tar.bz2