Ubuntu16.04系统安装Anaconda3

      Ubuntu16.04系统本身自带python2.7,可以保留不动,安装Anaconda3时将附带python3.6,不需要单独下载新的python版本。安装过程如下:

1.在Anaconda官网下载操作系统对应的版本

linux系统链接:https://www.anaconda.com/download/#linux

2.cd到下载目录中(一般放在/home/...中)

执行:chmod +x Anaconda3-5.2.1-Linux-x86_64.sh

           ./Anaconda3-5.2.1-Linux-x86_64.sh

执行到Do you accept the license terms?

选择yes继续

执行到install into this location:/home/.../anaconda3

按enter继续

执行到Do you wish the installer to prepend the Anaconda3 install location to PAYH in your /home/.../.bashrc?

选择yes继续

至此安装完成。

可能的问题:Warning:系统中已经存在一个python环境,可能会对一些操作产生影响(具体写的什么记不清了,大概意思就这样),此时在Terminal中输入python,仍然显示python2.7,并未变成python3.6.5 | Anaconda Inc,主要原因是在安装Anaconda时添加环境变量失败。

解决方法:重新打开一个Terminal,输入:sudo gedit /etc/profile,弹出profile文件,

在文件末尾添加:export PATH=/home/.../anaconda3/bin:$PATH(原则上就是将自己Anaconda的bin路径添加进去)。

保存后退出,然后reboot一下,重启后再输入python,python环境就自动切换到了python3.6.5. 

 

参考博客:https://blog.csdn.net/chenhaifeng2016/article/details/78874883

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值