linux安装anaconda过程
今天在centos7下安装了Anaconda,将安装过程记录如下
下载安装Anaconda
下载地址:https://repo.continuum.io/archive/index.html
打开页面后,以Anaconda2开头的就是python2版本,以Anaconda3开头的就是python3版本,因为centos7本身就带有python2.7版本,所有我下载的是Anaconda3 比较新的版本 Anaconda3-5.1.0-Linux-x86_64.sh
右键复制下载链接地址 https://repo.continuum.io/archive/Anaconda3-5.1.0-Linux-x86_64.sh,命令行输入:
wget https://repo.continuum.io/archive/Anaconda3-5.1.0-Linux-x86_64.sh
如果提示错误:-bash: wget: command not found,则先执行如下命令后再执行上一条命令
yum -y install wget
执行完 wget 命令后会下载Anaconda sh文件到当前目录下,执行命令进行安装
bash <span style="color:rgb(0,0,0);font-family:Consolas, 'Courier New', Courier, mono, serif;font-size:12px;text-align:left;">Anaconda3-5.1.0-Linux-x86_64.sh</span>
如果安装过程中提示错误:bunzip2: command not found,先执行命令再安装
yum install -y bzip2
接下来就等着安装完毕,中间会有提示让你确认,按以下输入就行了
Do you accept the license terms? [yes|no]
[no] >>> yes
Do you wish the installer to prepend the Anaconda3 install location
to PATH in your /home/ai/.bashrc ? [yes|no]
[no] >>> yes
Do you wish to proceed with the installation of Microsoft VSCode? [yes|no]
>>> no
中间还会让你指定一个安装目录,可以用默认的回车就行了,也可以自己指定一个目录,注意,指定的目录不能已经存在,他会自动创建,我指定的是 /usr/local/Anaconda3
安装完毕之后,需要重新启动命令行终端,anaconda才能生效。
验证是否安装成功
conda -V
分别输入python python2 python3命令如下图
可以看到python2.7和python3.6都装上了,python和python3命令对应的python版本为3.6,python2命令对应的python版本是2.7。
如果安装过程中出错问题,或者想更新另一个版本,删除anaconda也很方便,执行下面命令删除安装目录就行了
rm -rf /usr/local/Anaconda3
====================================================================================================================================
1.
下载并安装anaconda
地址:https://repo.anaconda.com/archive/Anaconda3-2019.03-Linux-x86_64.sh
安装:bash Anaconda3-2019.03-Linux-x86_64.sh
2.
创建并激活一个虚拟环境
创建:conda create -p /path/machinelearning
激活:conda activate /path/machinelearning
3.
在虚拟环境目录下分别建立子目录:/model/singleTurnIntent和/model/singleTurnSlot
将意图识别模型和槽填充模型分别拷贝至上述两个目录中。
4.
将singleTurnIntentSlotPredict.py拷贝至/machinelearning目录中。
5.
安装以下库:
pip install spacy --
pip install pandas
pip install tensorflow
pip install flask
pip install waitress
pip install tflearn
pip install flask_cors
pip install jieba
6.
启动服务:
进入/machinelearning目录中,执行下面的语句:
nohup python -u singleTurnIntentSlotPredict.py>out.log &
linux安装anaconda过程的更多相关文章
- Linux 安装Anaconda 提示“bunzip2: command not found”
问题: 安装Anaconda 过程中提示缺少“bunzip2” 解决思路: 由于缺少bunzip2 包,需要通过yum 方式安装bzip2 yum install -y bzip2 Linux bun ...
- 最详细的linux安装php过程
本文主要和大家分享最详细的linux安装php过程,然后写好了nginx的安装配置,后面就是php的安装和mysql的安装,不过时间有限,而且放篇里也太长,所以都是分开来写,php安装完毕后就是mys ...
- Linux 安装Anaconda 4.4.0
安装步骤参考了官网的说明:https://docs.anaconda.com/anaconda/install/linux.html 具体步骤如下: 1.在官网下载地址 https://www.an ...
- linux安装anaconda中的问题及解决办法
安装过程: 0:在ananconda官网网站上下载anaconda的linux版本https://www.anaconda.com/download/: 1:linux上切换到下载目录后(用cd), ...
- linux安装anaconda
打开网址:https://repo.continuum.io/archive/ 下载对应版本: 然后把下载的文件放到linux系统上 在终端执行: bash Anaconda3-5.1.0-Linux ...
- centos linux安装telnet 过程及问题(源于内部tomcat网站,外部无法访问)
首先本地没有telnet客户端及服务器 root权限下安装 yum install telnet yum install telnet-server vi /etc/xinetd.d/telnet 这 ...
- Linux安装mysql过程(转+完善)
http://blog.csdn.net/jerome_s/article/details/52883234yum 安装MySQL 1. 检查安装情况 查看有没有安装过: ...
- 记录Kali Linux 安装输入法过程
1.首先设置源,打开终端输入. eafpad /etc/apt/sources.list 清空Sources.list里的内容,设置一个阿里云的源就行了. deb http://mirrors.ali ...
- python linux安装anaconda
步骤: 1.在清华大学镜像站中下载anaconda版本:https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/ https://mirrors.t ...
随机推荐
- 在Spring中使用Redis Lua脚本批量删除缓存
背景 之前分享了一篇利用lua脚本批量删除redis的key的文章.现在项目中我打算使用spring的缓存,而Spring缓存以前我是用ehcache来做实现的.没发现什么问题..这次我换成redis ...
- ConcurrentHashMap源码分析(JDK8版本<转载>)
注:本文源码是JDK8的版本,与之前的版本有较大差异 转载地址:http://blog.csdn.net/u010723709/article/details/48007881 ConcurrentH ...
- java反射(Field的应用)
//$Id: DirectPropertyAccessor.java 11405 2007-04-15 12:50:34Z max.andersen@jboss.com $ package org.h ...
- 复制新增树状数据_ParentID也需要更新
CREATE TABLE TreeShip( [ID] uniqueidentifier PRIMARY KEY NOT NULL, [Name] [nvarchar](50) NULL, [R ...
- 40行代码爬取猫眼电影TOP100榜所有信息
主要内容: 一.基础爬虫框架的三大模块 二.完整代码解析及效果展示 1️⃣ 基础爬虫框架的三大模块 1.HTML下载器:利用requests模块下载HTML网页. 2.HTML解析器:利用re正则表 ...
- 35. Search Insert Position (Array; Divide-and-Conquer)
Given a sorted array and a target value, return the index if the target is found. If not, return the ...
- Weblogic10.3.6部署解决CXF webService 调用报错: “Cannot create a secure XMLInputFactory”
一,解决步骤 1.添加jar包 stax2-api-3.1.4.jar woodstox-core-asl-4.4.1.jar 2.编写监听器 package com.neusoft.cxf.list ...
- Java工具类之Apache的Commons Lang和BeanUtils
Apache Commons包估计是Java中使用最广发的工具包了,很多框架都依赖于这组工具包中的一部分,它提供了我们常用的一些编程需要,但是JDK没能提供的机能,最大化的减少重复代码的编写. htt ...
- DEPENDS工具和DUMPBIN工具使用
在系统部署运行时我们经常发现某个程序在开发机器中可以运行,但是部署在某台PC上缺不能运行,也存在在某些机器上可运行换一台机器却不能运行.主要表现出两种现象: (1).运行.调试时出现程序 ...
- 使用python管理Cisco设备-乾颐堂
今天发现一个老外使用python写的管理cisco设备的小框架tratto,可以用来批量执行命令. 下载后主要有3个文件: Systems.py 定义了一些不同设备的操作系统及其常见命令. Conne ...