anaconda整理

取消开机自动进入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
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值