Install Anaconda3
Change the environment variables after installation, open /etc/profile, add
export PYTHONPATH=<the path you want to add>:$PYTHONPATH
Open the terminal again and enter
update-alternatives --list python
If there is no python display, it has not been recognized, then enter
update-alternatives --install /usr/bin/python python /usr/bin/python2.7 1
update-alternatives --install /usr/bin/python python /usr/bin/python3.5 2
update-alternatives --install /usr/bin/python python /home/mulsn/anaconda3/bin/python3.6 3
re-enter
update-alternatives --list python
Found lists three python versions.
Check the system default python version:
python --version
Displayed as the version under the anaconda path, this is because the setting has the highest priority (here it is set to 3)
Download Tensorflow
https://www.tensorflow.org/install/install_linux#the_url_of_the_tensorflow_python_package
Download the corresponding version at the above address