sudo apt install build-essential libssl-dev libffi-dev python3-devwget https://repo.continuum.io/archive/Anaconda3-5.3.0-Linux-x86_64.shchmod +x Anaconda3-5.3.0-Linux-x86_64.sh./Anaconda3-5.3.0-Linux-x86_64.shInstall anaconda3 to /home/samiux/anaconda3 (current user, samiux) and then answer "yes" to allow change the .bashrc of samiux. (replace "samiux" with your username)
source /home/samiux/.bashrcUpdate Anaconda3.
conda update --prefix /home/samiux/anaconda3 anaconda
conda update -n base condaSince current Tensorflow 1.11.0 only supports Python 3.6 for Python 3.x, we need to install Python 3.6 at the virtual environment for Tensorflow.
conda create -n venv pip python=3.6
conda install tensorflow -n venvTo activate the virtual environment, that is Python 3.6.
conda activate venvTo deactivate it when not using Python 3.6 and Tensorflow.
conda deactivateTo test the Tensorflow installation.
(venv) samiux@ubuntu:~$ python -c "import tensorflow as tf; print(tf.__version__)"It will display the current version of Tensorflow. The current version of Tensorflow as at this writing is 1.11.0.
1.11.0That's all! See you.