Linux下安装anaconda3

1.下载anaconda

清华大学开源软件镜像站anaconda下载地址:
https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/

2.安装Anaconda

$ sudo sh Anaconda3-5.3.0-Linux-x86_64.sh 
[sudo] andrew 的密码: 
Welcome to Anaconda3 5.3.0
In order to continue the installation process, please review the license
agreement.
Please, press ENTER to continue
>>> # 按下回车
... # 多次按空格读完license。
Do you accept the license terms? [yes|no]
[no] >>> yes # 输入yes
 - Press ENTER to confirm the location
 - Press CTRL-C to abort the installation
 - Or specify a different location below
...
[/home/andrew/anaconda3] >>> /usr/local/anaconda3 # 输入自定义目录
... # 安装根据机器性能,通常需要持续几分钟。
Do you wish to proceed with the installation of Microsoft VSCode? [yes|no] #选择no,一般来说自带的spyder和专业IDE wingIDE更好用。
...
Do you wish the installer to initialize Anaconda3
in your /home/andrew/.bashrc ? [yes|no]
[no] >>> # 选择yes
Initializing Anaconda3 in /home/andrew/.bashrc
A backup will be made to: /home/andrew/.bashrc-anaconda3.bak
For this change to become active, you have to open a new terminal.
Thank you for installing Anaconda3!
===========================================================================
Anaconda is partnered with Microsoft! Microsoft VSCode is a streamlined
code editor with support for development operations like debugging, task
running and version control.
To install Visual Studio Code, you will need:
 - Administrator Privileges
 - Internet connectivity
Visual Studio Code License: https://code.visualstudio.com/license
Do you wish to proceed with the installation of Microsoft VSCode? [yes|no]
>>> no

3.添加环境变量

1、输入

sudo gedit ~/.bashrc

2、最后一行添加

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

export PATH=$PATH:[环境变量]
3、然后保存更改,运行

source ~/.bashrc

4、验证

conda info --envs

输出如下结果则为成功
在这里插入图片描述
拼接文章,主要原因是为了方便自己以后使用和其他需要的人
参考文章
https://blog.csdn.net/weixin_41991575/article/details/89002305
https://blog.csdn.net/weixin_38705903/article/details/86533863

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值