CentOS7服务器上部署深度/机器学习环境推荐首选anaconda3
CentOS7服务器上部署深度/机器学习环境推荐首选anaconda3,亲测~~ 因为可以创建不同的环境版本或虚拟环境
CentOS7服务器安装anaconda3后,CentOS7服务器开启后自动将anaconda3自身的root(或base)环境开启。
用Xshell打开CentOS7服务器后,可以看见 (base)
WARNING! The remote SSH server rejected X11 forwarding request.
Last login: Tue Mar 12 22:11:51 2019 from 192.168.1.72
(base) [jiangshan@localhost ~]$
查看环境,发现anaconda3自身的root(或base)环境处于活动状态 ============== 默认开机启动(在指定的用户下)
(base) [jiangshan@localhost ~]$ conda info -e
# conda environments:
#
base * /home/jiangshan/anaconda3
( * 代表活动状态)
===================试验=======================================================
(base) [jiangshan@localhost ~]$ source deactivate
DeprecationWarning: 'source deactivate' is deprecated. Use 'conda deactivate'.
[jiangshan@localhost ~]$
===================试验=======================================================
# TenssorFlow目前还不支持Python 3.7,使用Anaconda3创建Python 3.6虚拟环境
# 创建基于python 3.6 的tensorflow环境:
(base) [jiangshan@localhost ~]$ conda create --name tensorflow python=3.6
==========================================================================
## Package Plan ##
environment location: /home/jiangshan/anaconda3/envs/tensorflow
added / updated specs:
- python=3.6
==========================================================================
查看创建的tensorflow环境
(base) [jiangshan@localhost ~]$ conda info -e
# conda environments:
#
base * /home/jiangshan/anaconda3
tensorflow /home/jiangshan/anaconda3/envs/tensorflow
已经创建tensorflow环境,暂未进入激活
激活 tensorflow
(base) [jiangshan@localhost ~]$ source activate tensorflow
查看已激活的tensorflow环境
(tensorflow) [jiangshan@localhost ~]$ conda info -e
# conda environments:
#
base /home/jiangshan/anaconda3
tensorflow * /home/jiangshan/anaconda3/envs/tensorflow 【有 * 号】
在 tensorflow环境安装 tensorflow
(tensorflow) [jiangshan@localhost ~]$ conda install tensorflow
留意以下信息
==============================================================================================
## Package Plan ##
environment location: /home/jiangshan/anaconda3/envs/tensorflow
added / updated specs:
- tensorflow
The following NEW packages will be INSTALLED:
absl-py anaconda/cloud/conda-forge/linux-64::absl-py-0.7.0-py36_1000
astor anaconda/cloud/conda-forge/noarch::astor-0.7.1-py_0
blas anaconda/pkgs/free/linux-64::blas-1.0-mkl
c-ares anaconda/cloud/conda-forge/linux-64::c-ares-1.15.0-h14c3975_1001
gast anaconda/cloud/conda-forge/noarch::gast-0.2.2-py_0
grpcio pkgs/main/linux-64::grpcio-1.16.1-py36hf8bcb03_1
libgfortran-ng anaconda/cloud/conda-forge/linux-64::libgfortran-ng-7.2.0-hdf63c60_3
libprotobuf anaconda/cloud/conda-forge/linux-64::libprotobuf-3.7.0-hdbcaa40_1
markdown anaconda/cloud/conda-forge/noarch::markdown-2.6.11-py_0
mkl anaconda/pkgs/free/linux-64::mkl-2017.0.3-0
numpy pkgs/main/linux-64::numpy-1.14.2-py36hdbf6ddf_0
protobuf anaconda/cloud/conda-forge/linux-64::protobuf-3.7.0-py36hf484d3e_0
six anaconda/cloud/conda-forge/linux-64::six-1.12.0-py36_1000
tensorboard anaconda/cloud/conda-forge/linux-64::tensorboard-1.10.0-py36_0
tensorflow anaconda/cloud/conda-forge/linux-64::tensorflow-1.10.0-py36_0
termcolor anaconda/cloud/conda-forge/noarch::termcolor-1.1.0-py_2
werkzeug anaconda/cloud/conda-forge/noarch::werkzeug-0.14.1-py_0
==============================================================================================
# 查看虚拟环境已经安装的包
(tensorflow) [jiangshan@localhost ~]$ conda list
==============================================================================================
# packages in environment at /home/jiangshan/anaconda3/envs/tensorflow:
#
# Name Version Build Channel
absl-py 0.7.0 py36_1000 https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
astor 0.7.1 py_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
blas 1.0 mkl https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
c-ares 1.15.0 h14c3975_1001 https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
ca-certificates 2019.3.9 hecc5488_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
certifi 2019.3.9 py36_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
gast 0.2.2 py_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
grpcio 1.16.1 py36hf8bcb03_1 defaults
libffi 3.2.1 hf484d3e_1005 https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
libgcc-ng 7.3.0 hdf63c60_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
libgfortran-ng 7.2.0 hdf63c60_3 https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
libprotobuf 3.7.0 hdbcaa40_1 https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
libstdcxx-ng 7.3.0 hdf63c60_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
markdown 2.6.11 py_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
mkl 2017.0.3 0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
ncurses 6.1 hf484d3e_1002 https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
numpy 1.14.2 py36hdbf6ddf_0 defaults
openssl 1.1.1b h14c3975_1 https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
pip 19.0.3 py36_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
protobuf 3.7.0 py36hf484d3e_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
python 3.6.7 h381d211_1004 https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
readline 7.0 hf8c457e_1001 https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
setuptools 40.8.0 py36_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
six 1.12.0 py36_1000 https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
sqlite 3.26.0 h67949de_1001 https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
tensorboard 1.10.0 py36_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
tensorflow 1.10.0 py36_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
termcolor 1.1.0 py_2 https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
tk 8.6.9 h84994c4_1000 https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
werkzeug 0.14.1 py_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
wheel 0.33.1 py36_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
xz 5.2.4 h14c3975_1001 https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
zlib 1.2.11 h14c3975_1004 https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
==============================================================================================
# 测试
(tensorflow) [jiangshan@localhost ~]$ python
Python 3.6.7 | packaged by conda-forge | (default, Feb 28 2019, 09:07:38)
[GCC 7.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorflow as tf 【不报错就表示安装成功】
>>> quit()
CentOS7服务器上部署深度/机器学习环境推荐首选anaconda3的更多相关文章
- Linux学习2-在阿里云服务器上部署禅道环境
前言 以前出去面试总会被问到:测试环境怎么搭建?刚工作1-2年不会搭建测试环境还可以原谅自己,工作3-5年后如果还是对测试环境搭建一无所知,面试官会一脸的鄙视. 本篇以最简单的禅道环境搭建为例,学习下 ...
- CentOS7服务器上部署Oracle客户端
环境 操作系统: CentOS7.2.1511 x86_64 准备安装包 在这个网站:https://www.oracle.com/technetwork/topics/linuxx86-64soft ...
- Centos7服务器搭建部署显卡计算环境以及常用软件的安装使用
安装好anaconda的服务器上会more你已经安装好jupyter notebook,执行下面的命令可以提供链接地址允许远程浏览器打开并访问: jupyter notebook --no-brows ...
- PHP--腾讯云服务器上部署LNMP环境
本文参考 云服务器上部署Laravel的实例教程 腾讯云 创建 Laravel5.4 项目 阿里云服务器部署php的laravel项目,在阿里云买ECS 搭建 Linux+Nginx+Mysql+PH ...
- [原创]在HP DL380 G7服务器上部署基于Ubuntu Server 16.04 和 VirtualBox的云平台
对于一线开发人员来说,一提到虚拟机平台,往往会让人联想到在价格昂贵的服务器上部署VMware vSphere之类软件来实现. 笔者作为一个资深码农,也是一直梦寐着在自己家中打造一个真正的家庭私有云,秒 ...
- .Net Core WebApi(二)在Windows服务器上部署
上一篇学习到了如何简单的创建.Net Core Api和Swagger使用,既然写了接口,那么就需要部署到服务器上才能够正式使用.服务器主要用到了两种系统,Windows和Linux,.Net和Win ...
- Django项目在Linux服务器上部署和躺过的坑
引言 在各方的推荐下,领导让我在测试环境部署之前开发的测试数据预报平台.那么问题来了,既然要在服务器上部署, 就需要准备: 1.linux服务器配置 2.linux安装python环境搭建与配置 3. ...
- IIS 7 Web服务器上部署ASP.NET网站(转)
IIS 7 Web服务器上部署ASP.NET网站小记 摘自:http://swanmsg.blog.sohu.com/162111073.html 网上查找了很久关于iis7配置asp.net配置问题 ...
- linux服务器上部署项目,同时运行两个或多个tomcat
在阿里云服务器上部署项目的时候,想使用阿里云提供的负载均衡服务并创建两个监听(如图), 但需要一台服务器提供两个端口,于是就请教前辈并查询资料,得知: 一台服务器提供两个端口,有两种方式: 1.一个t ...
随机推荐
- EF框架的code first
需要添加EntityFramework的引用,在NuGet(在工具--库程序包管理--程序包管理控制台) 控制台输入Install-Package EntityFramework,目前版本是6.1.3 ...
- 在Windows上搭建kafka环境
英文文档:https://dzone.com/articles/running-apache-kafka-on-windows-os 第一步:安装JDK 百度很多,不赘述 第二步:安装ZooKeepe ...
- 华中农业大学第五届程序设计大赛网络同步赛-L
L.Happiness Chicken brother is very happy today, because he attained N pieces of biscuits whose tast ...
- 排序算法(6)--exchang Sorting--交换排序[1]--Bubble Sort--冒泡排序
1.基本思想 冒泡排序的基本思想是,对相邻的元素进行两两比较,顺序相反则进行交换,这样,每一趟会将最小或最大的元素“浮”到顶端,最终达到完全有序 2.实现原理 冒泡排序是一种简单的排序算法,根据顺序两 ...
- Python selenium —— 父子、兄弟、相邻节点定位方式详解
今天跟大家分享下selenium中根据父子.兄弟.相邻节点定位的方法,很多人在实际应用中会遇到想定位的节点无法直接定位,需要通过附近节点来相对定位的问题,但从父节点定位子节点容易,从子节点定位父节点. ...
- pms前端结构
后台采用.net MVC框架,前端采用requirejs.整个系统页面布局基本不变,每个页面只改变Main_Content部分. 模板页cshtml: <!DOCTYPE html> &l ...
- mongodb基础环境搭建
一.准备工具 (1)mongodb(https://www.mongodb.com/dr/fastdl.mongodb.org/win32/mongodb-win32-x86_64-2008plus- ...
- 浅析ARM公司在物联网领域的战略布局
From: http://www.cnblogs.com/yefanqiu/p/3447769.html 浅析ARM公司在物联网领域的战略布局 随着ARM芯片的出货量越来越多,自信满满的ARM公司统一 ...
- MBTIles实现
MBTIles实现 3.1 Compliant(符合) python: raster2mb (write) python: mbutil (read/write) python: landez (wr ...
- Linux sudo 命令使用简介
Linux sudo 命令使用简介 by:授客 QQ:1033553122 基本语法: $ sudo [-u username] [command] -u:将身份变成username的身份 #编辑/e ...