


TensorFlow installation and detailed explanation of jupyter notebook configuration
Sep 09, 2017 am 11:23 AMThe following editor will bring you an article on TensorFlow installation and jupyter notebook configuration methods. The editor thinks it’s pretty good, so I’ll share it with you now and give it as a reference. Let’s follow the editor to take a look.
tensorflow uses anaconda to install under ubuntu, jupyter notebook running directory and remote access configuration
Installing Anaconda under Ubuntu
bash ~/file_path/file_name.sh
After permission appears, you can press Ctrl+C to skip, yes agree.
After the installation is completed, you will be asked whether to add the path path, or you can modify the file content yourself
Close the command console and reopen it
python -V
You can view it Whether the installation is successful
Modify the python version of anaconda to meet the tf requirements
conda install python=3.5
Anaconda installs TensorFlow
Get Anaconda's TF source
anaconda search -t conda tensorflow
After waiting, the list will be displayed. I selected the conda-forge/tensorflow source to install
anaconda show conda-forge/tensorflow
will display the current installation information and prompt the instructions that need to be entered to install: conda install --channel XXXX URL
After input, it will prompt for the package information that needs to be installed, enter Y Agree and install.
The download speed of some packages is very slow, you can open lantern first
jupyter notebook usage and configuration
Enter jupyter under Ubuntu Open the notebook
jupyter notebook --generate-config to generate the default configuration file jupyter_notebook_config.py
Default address configuration
Modify the configuration file c.NotebookApp.notebook_dir = 'XXXX'
Remote access
No remote access by default
First generate the login password: open ipython and enter
from notebook.auth import passwd
passwd( ) Enter the password to be set according to the prompts, and copy the generated sha1 password
which needs to be copied completely, for example:
sha1:ce23d945972f:34769685a7ccd3d08c84a18c63968a41f1140274
Modify the configuration file
c.NotebookApp.ip='*' c.NotebookApp.password = u'sha:xxxxxxxxxxxxxxxxxxxxxxxxxx' c.NotebookApp.open_browser = False c.NotebookApp.port =8888
Note that there is * in the ip, and there is u
in front of the password. After the configuration is completed, it can be accessed remotely. After the configuration is completed, it will not pop up automatically when starting the notebook. The webpage needs to be opened manually. After opening, you need to enter the password before you can access it.
Note 1: Ubuntu can use ifconfig to obtain the local IP address
Note 2: The virtual machine can use NAT mode or bridge mode to make the host accessible to the notebook
The above is the detailed content of TensorFlow installation and detailed explanation of jupyter notebook configuration. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undress AI Tool
Undress images for free

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Huawei is rolling out software version 5.0.0.100(C00M01) for the Watch GT 5 and the Watch GT 5 Prosmartwatchesglobally. These two smartwatches recently launched in Europe, with the standard model arriving as the company’s cheapest model. This Harmony

Katsuhiro Harada, the Tekken series director, once seriously tried to bring Colonel Sanders into the iconic fighting game. In an interview with TheGamer, Harada revealed that he pitched the idea to KFC Japan, hoping to add the fast-food legend as a g

Garmin is ending the month with a new set of stable updates for its latest high-end smartwatches. To recap, the company released System Software 11.64 to combat high battery drain across the Enduro 3, Fenix E and Fenix 8 (curr. $1,099.99 on Amazon).

Tesla is rolling out the latest Full Self-Driving (Supervised) version 12.5.5 and with it comes the promised Cybertruck FSD option at long last, ten months after the pickup went on sale with the feature included in the Foundation Series trim price. F

Earlier in September 2024, Anker's Zolo 140W charger was leaked, and it was a big deal since it was the first-ever wall charger with a display from the company. Now, a new unboxing video from Xiao Li TV on YouTube gives us a first-hand look at the hi

Xiaomi will shortly launch the Mijia Graphene Oil Heater in China. The company recently ran a successful crowdfunding campaign for the smart home product, hosted on its Youpin platform. According to the page, the device has already started to ship to

The launch of Samsung's long-awaited 'Special Edition' foldable has taken another twist. In recent weeks, rumours about the so-called Galaxy Z Fold Special Edition went rather quiet. Instead, the focus has shifted to the Galaxy S25 series, including

With a history of over one decade, Manjaro is regarded as one of the most user-friendly Linux distros suitable for both beginners and power users, being easy to install and use. Mostly developed in Austria, Germany, and France, this Arch-based distro
