Linux系统如何安装TensorFlow(linux,tensorflow,开发技术)

时间:2024-05-04 23:44:10 作者 : 石家庄SEO 分类 : 开发技术
  • TAG :

TensorFlow简介;

  • TensorFlow是一个开放源代码软件库,用于进行高性能数值计算。

  • 借助其灵活的架构,用户可以轻松地将计算工作部署到多种平台(CPU、GPU、TPU)和设备(桌面设备、服务器集群、移动设备、边缘设备等)。

  • TensorFlow 是一个用于研究和生产的开放源代码机器学习库。

  • TensorFlow 提供了各种 API,可供初学者和专家在桌面、移动、网络和云端环境下进行开发。

环境准备

下载anaconda, https://repo.anaconda.com/archive/Anaconda3-2019.10-Linux-x86_64.sh

安装

[root@localhost~]#wgethttps://repo.anaconda.com/archive/Anaconda3-2019.10-Linux-x86_64.sh[root@localhost~]#bashAnaconda3-2019.10-Linux-x86_64.sh12

以上信息提示,都进行按ENTER,输入yes操作。

配置jupyter环境

[root@localhost~]#source/root/.bashrc1
查看conda版本
[root@localhost~]#conda--version1
配置jupyter notebook
[root@localhost~]#cd/root/anaconda3/etc/jupyter(base)[root@localhostjupyter]#jupyternotebook--generate-config12
设置置jupyter notebook的登录密码
(base)[root@localhostdata]#pythonPython3.7.4(default,Aug132019,20:35:49)[GCC7.3.0]::Anaconda,Inc.onlinuxType"help","copyright","credits"or"license"formoreinformation.>>>fromnotebook.authimportpasswd>>>passwd()Enterpassword:Verifypassword:'sha1:fc48ba43d994:264211bcd15748509d8711bfede4ae330d208641'>>>exit()'sha1:fc48ba43d994:264211bcd15748509d8711bfede4ae330d208641'密码后续需要。123456789101112
修改jupyter notebook的文件设置
(base)[root@localhostdata]#cd/root/.jupyter/(base)[root@localhost.jupyter]#ls(base)[root@localhost.jupyter]#vimjupyter_notebook_config.py123
修改登录配置
c.NotebookApp.ip='ip'#允许访问此服务器的IP,星号表示任意IPc.NotebookApp.password=u'sha1:fc48ba43d994:264211bcd15748509d8711bfede4ae330d208641'#之前生成的密码字串c.NotebookApp.open_browser=False#运行时不打开本机浏览器c.NotebookApp.port=8888#使用的端口c.NotebookApp.enable_mathjax=True#启用MathJaxc.NotebookApp.notebook_dir='/root/jupyter'#存放文件的目录c.NotebookApp.allow_remote_access=True#允许远程访问1234567
启动 jupyter notebook
jupyternotebook--allow-root1
开启linux防火墙,运行远程访问

查看防火墙状态

(base)[root@localhost~]#systemctlstatusfirewalld.service#查看防火墙状态(base)[root@localhost~]#systemctlstopfirewalld.service#关闭运行的防火墙(base)[root@localhost~]#systemctlstatusfirewalld.service#查看防火墙状态可以看到123

使用ip和设置的密码进行登录

jupyter安装tensorflow

登录jupyter后pip安装

pipinstallkerastensorflow==2.0.0-ihttps://pypi.tuna.tsinghua.edu.cn/simple/--default-timeout=1001

Linux系统如何安装TensorFlow

 </div> <div class="zixun-tj-product adv-bottom"></div> </div> </div> <div class="prve-next-news">
本文:Linux系统如何安装TensorFlow的详细内容,希望对您有所帮助,信息来源于网络。
上一篇:如何进行FirewallD 防火墙的使用下一篇:

6 人围观 / 0 条评论 ↓快速评论↓

(必须)

(必须,保密)

阿狸1 阿狸2 阿狸3 阿狸4 阿狸5 阿狸6 阿狸7 阿狸8 阿狸9 阿狸10 阿狸11 阿狸12 阿狸13 阿狸14 阿狸15 阿狸16 阿狸17 阿狸18