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的更多相关文章

  1. Linux学习2-在阿里云服务器上部署禅道环境

    前言 以前出去面试总会被问到:测试环境怎么搭建?刚工作1-2年不会搭建测试环境还可以原谅自己,工作3-5年后如果还是对测试环境搭建一无所知,面试官会一脸的鄙视. 本篇以最简单的禅道环境搭建为例,学习下 ...

  2. CentOS7服务器上部署Oracle客户端

    环境 操作系统: CentOS7.2.1511 x86_64 准备安装包 在这个网站:https://www.oracle.com/technetwork/topics/linuxx86-64soft ...

  3. Centos7服务器搭建部署显卡计算环境以及常用软件的安装使用

    安装好anaconda的服务器上会more你已经安装好jupyter notebook,执行下面的命令可以提供链接地址允许远程浏览器打开并访问: jupyter notebook --no-brows ...

  4. PHP--腾讯云服务器上部署LNMP环境

    本文参考 云服务器上部署Laravel的实例教程 腾讯云 创建 Laravel5.4 项目 阿里云服务器部署php的laravel项目,在阿里云买ECS 搭建 Linux+Nginx+Mysql+PH ...

  5. [原创]在HP DL380 G7服务器上部署基于Ubuntu Server 16.04 和 VirtualBox的云平台

    对于一线开发人员来说,一提到虚拟机平台,往往会让人联想到在价格昂贵的服务器上部署VMware vSphere之类软件来实现. 笔者作为一个资深码农,也是一直梦寐着在自己家中打造一个真正的家庭私有云,秒 ...

  6. .Net Core WebApi(二)在Windows服务器上部署

    上一篇学习到了如何简单的创建.Net Core Api和Swagger使用,既然写了接口,那么就需要部署到服务器上才能够正式使用.服务器主要用到了两种系统,Windows和Linux,.Net和Win ...

  7. Django项目在Linux服务器上部署和躺过的坑

    引言 在各方的推荐下,领导让我在测试环境部署之前开发的测试数据预报平台.那么问题来了,既然要在服务器上部署, 就需要准备: 1.linux服务器配置 2.linux安装python环境搭建与配置 3. ...

  8. IIS 7 Web服务器上部署ASP.NET网站(转)

    IIS 7 Web服务器上部署ASP.NET网站小记 摘自:http://swanmsg.blog.sohu.com/162111073.html 网上查找了很久关于iis7配置asp.net配置问题 ...

  9. linux服务器上部署项目,同时运行两个或多个tomcat

    在阿里云服务器上部署项目的时候,想使用阿里云提供的负载均衡服务并创建两个监听(如图), 但需要一台服务器提供两个端口,于是就请教前辈并查询资料,得知: 一台服务器提供两个端口,有两种方式: 1.一个t ...

随机推荐

  1. HDU2859(KB12-Q DP)

    Phalanx Time Limit: 10000/5000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Total Su ...

  2. 【代码笔记】iOS-UIAlertView自动关闭

    一,效果图. 二,代码. RootViewController.h #import <UIKit/UIKit.h> @interface RootViewController : UIVi ...

  3. nmon 及nmon analyser工具使用简介

    nmon及nmon analyser工具使用简介 by:授客 QQ:1033553122 下载地址 http://nmon.sourceforge.net/pmwiki.php?n=Site.Down ...

  4. windows 10安装jdk8

    1.下载jdk,选择jdk软件版本和对应windows 32/64位版本 jdk下载链接:https://www.oracle.com/technetwork/java/javase/download ...

  5. ViewPager中切换界面Fragment被销毁的问题

    ViewPager中切换界面Fragment被销毁的问题分析 使用ViewPager+Fragment实现界面切换,当界面数量大于3时,出现二次滑动后数据消失的情况,下面由Fragment生命周期进行 ...

  6. Expo大作战(二十六)--expo sdk api之Video和WebBrowser

    简要:本系列文章讲会对expo进行全面的介绍,本人从2017年6月份接触expo以来,对expo的研究断断续续,一路走来将近10个月,废话不多说,接下来你看到内容,讲全部来与官网 我猜去全部机翻+个人 ...

  7. MATLAB中批量导入.mat文件(每个文件多变量)

    一.新建MATLAB script(.m文件):readall_mat.m 二.代码如下: function data = readall_mat(path) % READALL_MAT 读取所有文件 ...

  8. PHP的CURL的POST/GET访问

    本文出至:新太潮流网络博客 /** * [curl以GET的方式访问] * @E-mial wuliqiang_aa@163.com * @TIME 2017-04-07 * @WEB http:// ...

  9. 使用 PowerShell 管理 Azure 磁盘

    Azure 虚拟机使用磁盘来存储 VM 操作系统.应用程序和数据. 创建 VM 时,请务必选择适用于所需工作负荷的磁盘大小和配置. 本教程介绍如何部署和管理 VM 磁盘. 学习内容: OS 磁盘和临时 ...

  10. MySQL索引原理及慢查询优化-zz

    https://tech.meituan.com/mysql-index.html MySQL凭借着出色的性能.低廉的成本.丰富的资源,已经成为绝大多数互联网公司的首选关系型数据库.虽然性能出色,但所 ...