conda 常用终端命令

查看conda版本、安装的库等资料

查看版本

conda --version

查看安装了什么库

conda list

查看安装的环境

conda info --envs

创建虚拟环境

创建

conda create -n torch python=3.6

激活

conda activate torch

退出虚拟环境

conda deactivate

更改镜像源

更改为国内镜像源

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
conda config --set show_channel_urls yes

换回默认源

conda config --remove-key channels

安装pytorch

conda install pytorch=0.4.0 
conda install torchvision -c pytorch

安装tensorflow

pip install tensorflow-gpu==1.9

你可能感兴趣的:(终端命令,anaconda)