linux服务器上删除anaconda,linux环境上anaconda的安装与卸载

本文详细介绍如何在Linux系统中安装Anaconda,并提供步骤指导,包括下载安装包、执行安装程序、配置环境变量及验证安装结果等。同时,还介绍了如何进行卸载。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

首先下载linux上anaconda的安装包:

$ wget https://repo.anaconda.com/archive/Anaconda3-5.1.0-Linux-x86_64.sh

然后赋权并执行安装程序:

$ chmod +x Anaconda3-5.1.0-Linux-x86_64.sh

$ ./Anaconda3-5.1.0-Linux-x86_64.sh

安装过程如下:

$ ./Anaconda3-5.1.0-Linux-x86_64.sh

Welcome to Anaconda3 5.1.0

In order to continue the installation process, please review the license

agreement.

Please, press ENTER to continue

>>>

===================================

Anaconda End User License Agreement

===================================

...

Do you accept the license terms? [yes|no]

>>> yes

Anaconda3 will now be installed into this location:

/home/py/anaconda3

– Press ENTER to confirm the location

– Press CTRL-C to abort the installation

– Or specify a different location below

[/home/py/anaconda3] >>> /anaconda/anaconda3      输入自定义安装路径,如果用默认的话回车跳过

然后将anaconda加入环境变量,并使其生效:

$ vi .bash_profile

在最后一行加上如下配置:

export PATH=/anaconda/anaconda3/bin:$PATH

如果是默认安装路径的话则为:

export PATH=/home/py/anaconda3/bin:$PATH

然后使其生效:

$source .bash_profile

最后检测一下安装结果:

$ python -V

Python 3.6.4 :: Anaconda, Inc.

如果需要卸载anaconda的话,只需要删除anaconda目录即可:

$ rm -rf /anaconda/anaconda3

作者:堕落门徒

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值