Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install TensorFlow on Linux system

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces how to install TensorFlow in Linux system, which is very detailed and has certain reference value. Friends who are interested must finish it!

Introduction to TensorFlow; TensorFlow is an open source software library for high-performance numerical calculations.

With its flexible architecture, users can easily deploy computing to multiple platforms (CPU, GPU, TPU) and devices (desktops, server clusters, mobile devices, edge devices, etc.).

TensorFlow is an open source machine learning library for research and production.

TensorFlow provides a variety of API for beginners and experts to develop in desktop, mobile, web, and cloud environments.

The environment is ready to download anaconda, https://repo.anaconda.com/archive/Anaconda3-2019.10-Linux-x86_64.sh

Install [root@localhost ~] # wget https://repo.anaconda.com/archive/Anaconda3-2019.10-Linux-x86_64.sh [root@localhost ~] # bash Anaconda3-2019.10-Linux-x86_64.sh 12 above information prompt, press ENTER, enter yes operation.

Configure jupyter environment [root@localhost ~] # source / root/.bashrc 1 View conda version [root@localhost ~] # conda-- version 1 configure jupyter notebook [root@localhost ~] # cd / root/anaconda3/etc/jupyter (base) [root@localhost jupyter] # jupyter notebook-- generate-config 12 set the login password for jupyter notebook (base) [root@localhost data] # python Python 3.7.4 (default, Aug 13 2019 20:35:49) [GCC 7.3.0]:: Anaconda, Inc. On linux Type "help", "copyright", "credits" or "license" for more information. > from notebook.auth import passwd > passwd () Enter password: Verify password: 'sha1:fc48ba43d994:264211bcd15748509d8711bfede4ae330d208641' > exit ()' sha1:fc48ba43d994:264211bcd15748509d8711bfede4ae330d208641' password is required later. 123456789101112 modify jupyter notebook file settings (base) [root@localhost data] # cd / root/.jupyter/ (base) [root@localhost .jupyter] # ls (base) [root@localhost .jupyter] # vim jupyter_notebook_config.py 123 modify login configuration c.NotebookApp.ip = 'ip' # IP that allows access to this server The asterisk denotes any IP c.NotebookApp.password = upright sha1lav fc48ba43d994pur264211bcd15748509d8711bfede4ae330d208641' # password string c.NotebookApp.open_browser = False # does not open the native browser c.NotebookApp.port = 8888 # port c.NotebookApp.enable_mathjax = True # enable MathJax c.NotebookApp.notebook_dir ='/ root/jupyter' # directory where files are stored c.NotebookApp.allow_remote_access = True # allow remote access to 1234567 to start jupyter notebook jupyter notebook-- allow-root 1 to enable linux firewall Run remote access to view firewall status

(base) [root@localhost ~] # systemctl status firewalld.service # View the status of the firewall (base) [root@localhost ~] # systemctl stop firewalld.service # turn off the running firewall (base) [root@localhost ~] # systemctl status firewalld.service # check the status of the firewall, you can see 123 login using ip and the password you set

Jupyter install tensorflow install pip after logging in to jupyter

Pip install keras tensorflow==2.0.0-I https://pypi.tuna.tsinghua.edu.cn/simple/-- default-timeout=100 1

The above is all the contents of the article "how to install TensorFlow in Linux system". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report