The following small series for everyone to bring a TensorFlow installation and Jupyter notebook configuration method. Small series feel very good, now share to everyone, also for everyone to make a reference. Let's take a look at it with a little knitting.
TensorFlow using Anaconda in Ubuntu installation method and Jupyter notebook run directory and Remote access configuration
Install Anaconda under Ubuntu
Bash ~/file_path/file_name.sh
After the license appears, press CTRL + C to skip and yes to agree.
After installation, ask whether to join path path, or modify the contents of the file yourself
Turn off command Console re-open
Python-v
To see if the installation was successful
Modify the Python version of Anaconda to meet the TF requirements
Conda Install python=3.5
Anaconda Installation TensorFlow
Get the TF source for Anaconda
Anaconda Search-t Conda TensorFlow
After waiting for the list to be displayed, I select the Conda-forge/tensorflow source to install
Anaconda Show Conda-forge/tensorflow
Displays the current installation information and prompts you to install the command you want to enter: Conda install--channel xxxx URL
Enter the package information that you want to install, enter Y to agree and install.
Some packages download very slowly, you can open lantern first
Jupyter Notebook Use and configuration
Ubuntu under input jupyter notebook open
Jupyter Notebook--generate-config can generate a default profile jupyter_notebook_config.py
Default address configuration
Modify config file C.notebookapp.notebook_dir = ' XXXX '
Remote access
Default non-remote access
First Generate login Password: Open Ipython input
From Notebook.auth import passwd
passwd () Follow the prompts to enter the password you want to set, copy the generated SHA1 password
Full replication is required, for example:
sha1:ce23d945972f:34769685a7ccd3d08c84a18c63968a41f1140274
Modifying a configuration file
c.notebookapp.ip= ' * ' C.notebookapp.password = U ' sha:xxxxxxxxxxxxxxxxxxxxxxxxxx ' C. Notebookapp.open_browser = Falsec.NotebookApp.port =8888
Note that the IP is *, before the password has U
After the configuration is complete, it can be accessed remotely, the Web page will not automatically pop up when the notebook is started, it needs to be opened manually, and the password can be accessed before opening.
Note 1:ubuntu can get the native IP address ifconfig
Note 2: Virtual machines can use NAT mode or bridge mode to make the host accessible notebook