HOWTO : Tensorflow 1.11.0 on Ubuntu 18.04.1 LTS with Anaconda3 5.3.0
Install Anaconda3 which is Python 3. The current version of Python is 3.7.x at Anaconda3.
Install anaconda3 to /home/samiux/anaconda3 (current user, samiux) and then answer "yes" to allow change the .bashrc of samiux. (replace "samiux" with your username)
Update Anaconda3.
Since 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.
To activate the virtual environment, that is Python 3.6.
To deactivate it when not using Python 3.6 and Tensorflow.
To test the Tensorflow installation.
It will display the current version of Tensorflow. The current version of Tensorflow as at this writing is 1.11.0.
That's all! See you.
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.