博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
人工智能学习笔记——入学指南,Anconda安装
阅读量:4218 次
发布时间:2019-05-26

本文共 1615 字,大约阅读时间需要 5 分钟。

1 什么是Anaconda

是集成了各种Python数据科学计算包的项目,免去开发者手工配置各种依赖包的麻烦。

2 下载

安装包可以从下载,目前提供了基于Python2.7和Python3.6版本安装包供选择。然而国内的网络环境从官网链接下载奇慢无比,推荐从国内的开源镜像站下载,如,这里我选择下载Anaconda3-5.0.0-Linux-x86_64.sh

3 安装

直接按照操作即可。 

在安装包所在目录执行命令,按Enter继续。由于我需要安装在/opt目录,所以加上了sudo

hj@hj-ubuntu:~/Downloads$ sudo bash Anaconda3-5.0.0-Linux-x86_64.sh Welcome to Anaconda3 5.0.0In order to continue the installation process, please review the licenseagreement.Please, press ENTER to continue>>>

接下来提示一些授权信息,输入yes继续。

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

接下来指定安装目录,不指定的话会安装到默认路径下。

Anaconda3 will now be installed into this location:/home/hj/anaconda3  - Press ENTER to confirm the location  - Press CTRL-C to abort the installation  - Or specify a different location below[/home/hj/anaconda3] >>> /opt/anaconda3

然后稍等一会,提示是否要将Anaconda的安装路径添加到PATH环境变量中,输入yes就好了。

installation finished.Do you wish the installer to prepend the Anaconda3 install locationto PATH in your /home/hj/.bashrc ? [yes|no][no] >>> yes

若输入no,需要手动在.bashrc文件中添加以下内容,然后source ~/.bashrc

export PATH="/opt/anaconda3/bin:$PATH"

至此,Anaconda就安装好了

4 使用

现在在终端中启动Python,发现已经替换成Anaconda的Python了

$ pythonPython 3.6.2 |Anaconda, Inc.| (default, Sep 22 2017, 02:03:08) [GCC 7.2.0] on linuxType "help", "copyright", "credits" or "license" for more information.>>>

输入以下命令可以开启anaconda-navigator,这里面集成了Anaconda自带的一些工具。

$ anaconda-navigator

anaconda-navigator界面

如果仍然无法启动或显示找不到命令,可以使用以下方法

方法一:

1 $ source ~/anaconda3/bin/activate root2 $ anaconda-navigator
方法二:
1 $ conda install -c anaconda anaconda-navigator​2 $ anaconda-navigator
参考:https://stackoverflow.com/questions/43030871/anaconda-navigator-ubuntu16-04
 

你可能感兴趣的文章
UVM:7.6.1 检查后门访问中hdl 路径的sequence
查看>>
UVM:7.6.2 检查默认值的sequence
查看>>
UVM:7.7.1 使用reg_predictor
查看>>
UVM:7.7.2 使用UVM_PREDICT_DIRECT功能与mirror 操作
查看>>
UVM:7.7.3 寄存器模型的随机化与update
查看>>
UVM:7.7.4 扩展位宽
查看>>
UVM:7.8.1 get_root_blocks
查看>>
UVM:7.8.2 get_reg_by_offset 函数
查看>>
UVM:8.1.1 任务与函数的重载
查看>>
UVM:8.1.2 约束的重载
查看>>
UVM:8.2.2 重载的方式及种类
查看>>
UVM:8.2.3 复杂的重载
查看>>
UVM:8.2.4 factory 机制的调试
查看>>
UVM:8.3.1 重载transaction
查看>>
UVM:8.3.2 重载sequence
查看>>
64.Minimum Path Sum
查看>>
实践---暴力穷举破解无线密码
查看>>
腾讯云服务器ftp部署及文件上传
查看>>
Python堆排序
查看>>
Centos 6.4 python 2.6 升级到 2.7
查看>>