linux环境上anaconda的安装与卸载

首先下载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

 

posted @   堕落门徒  阅读(40248)  评论(0编辑  收藏  举报
编辑推荐:
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
阅读排行:
· 全程不用写代码,我用AI程序员写了一个飞机大战
· DeepSeek 开源周回顾「GitHub 热点速览」
· 记一次.NET内存居高不下排查解决与启示
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· .NET10 - 预览版1新功能体验(一)
点击右上角即可分享
微信分享提示