Ubuntu 18.04 Install TENSORFLOW
When I was trying to install Tensorflow, the only code I came across was apt-get install Tensorflow. Of course, Tensorflow was not installed after writing this code.
First we need to change the directory we are in. So let’s go to that directory. The username here will be your own Ubuntu username.
cd /home/your_username/venv/bin
We need to install Python. We install python 3.6 using the code below.We need to install Python. We install python 3.6 using the code below.
apt-get install python3-venv
python3 -m venv venv
Thus, python3 is installed. Now let’s run the code below to activate the venv environment.
source ./venv/bin/activate
venv is now activated. Now let’s make the necessary preparations to install tensorflow.
After what we need to do is install pip and setuptools.
pip install -U pip
pip install -U setuptools
Now all we have to do is install Tensorflow. For this we write the following command :)
pip install tensorflow
Hope it will be useful…