取消开机自动进入base
conda config --set auto_activate_base false
cuda
nvcc编译是anaconda虚拟环境外的cuda版本,虚拟环境中的cudatoolkit是动态链接库,没有编译功能。
虚拟环境中可以配置cuda,一般安装tensorflow或者pytorch时就安好了
如需安装,安装cuda:conda install cudatoolkit=8.0 -c https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/linux-64/
安装cudnn:conda install cudnn=7.0.5 -c https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/linux-64/
修改版本即可
版本查询
conda list cudnn
conda list cuda
pytorch
添加pytorch源
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/
安装
conda install pytorch=0.3.0 torchvision=0.2.0 -c soumith
conda install pytorch=0.4.1 cuda90 -c pytorch
conda install torchvision
源
conda config --show-sources #查看当前使用源
conda config --remove channels 源名称或链接 #删除指定源
conda config --add channels 源名称或链接 #添加指定源
移动环境
cd ~/anaconda3/envs
zip -r speechSep.zip speechSep
# 移动到另一台机器
cd ~/anaconda3/envs
unzip speechSep.zip
conda activate speechSep