显示原来的镜像源
conda config --show channels
添加新的镜像源
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
阿里云 http://mirrors.aliyun.com/pypi/simple/
豆瓣(douban) http://pypi.douban.com/simple/
清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/
中国科学技术大学 http://pypi.mirrors.ustc.edu.cn/simple/
删除旧镜像源
conda config --remove channels https://pypi.doubanio.com/simple/
创建环境
conda create -n 环境名 python=3.6
进入环境
conda activate 环境名
退出环境
conda deactivate
查看环境
conda list
删除环境
conda remove -n gesture --all
更新pip
pip install --upgrade pip
安装库
pip install -i http://mirrors.aliyun.com/pypi/simple tensorflow==1.11.0
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple tensorflow-gpu==1.10.0
查看显卡使用情况
watch -n 1 nvidia-smi