1. 创建、显示、激活环境并下载包
conda create -n envname python=3.7
conda env list
conda activate envname
pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple tensorflow==1.13.1-gpu
conda install --yes --file requirements.txt
python XXX.py
tensorboard --logdir=logs --port=8008
2. 添加清华大学镜像
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 --set show_channel_urls yes # 安装或搜索时显示包的来源地址
3. PackagesNotFoundError: The following packages are not available from current channels:
anaconda search -t conda pygit
anaconda show auto/pygit
conda install --channel https://conda.anaconda.org/auto pygit