linux下conda的安装与使用

linux下conda的安装与使用

conda的安装

使用wget命令下载anaconda或miniconda,推荐下载miniconda

wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh

给执行权限并运行

chmod 777 Miniconda3-latest-Linux-x86_64.sh 
bash Miniconda3-latest-Linux-x86_64.sh 

禁止环境变量

Do you wish the installer to initialize Miniconda3
by running conda init? [yes|no]
[no] >>> 

切换到miniconda3/bin, 启动 conda

chmod 777 activate 
source ./activate 

添加清华源

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 --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda/

显示已安装的频道

 conda config --set show_channel_urls yes 

查看已安装的频道

vim ~/.condarc

conda的使用

conda下载软件包

conda install xxx

搜索软件包

conda search xxx

查看该软件安装的位置

which xxx

安装特定版本的软件包

conda install 软件名=版本号
conda install pytorch=1.7.1

查看已安装软件

conda list

更新指定软件

conda update xxx

卸载指定软件

conda remove gatk

退出conda环境

../deactivate
##或者
conda deactivate

conda环境创建

conda create -n xxx python=x.x

删除环境

conda remove -n xxx --all

重命名环境

conda create -n 新名字 --clone 旧名字
conda remove -n 旧名字 --all
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值