March 1, 2021 Bella

How to Install TensorFlow on Ubuntu?

TensorFlow is a free and open-source software library for Machine Learning and Deep Learning. It can be used across a range of tasks but has a particular focus on training and the interface of deep neural networks. TensorFlow is a  symbolic math library based on dataflow and differentiable programming. It was developed by the Google Brain team in 2012, written in Python, Cuda, C++, and used for both research and production at Google.

In this article, we will learn how to install TensorFlow on Ubuntu. But first, we should research what a Tensor is, and the Prerequisites for Installing TensorFlow on Ubuntu.

So, what is a Tensor?

A tensor is a mathematical object represented as an array of a higher dimension. These arrays of data—with different dimensions and ranks—are fed as input to the neural network to process and build a neural network model.

To install TensorFlow on Ubuntu, you need:

      1. An Ubuntu Linux system (16.04 version or later)
      2. Python 3.5 or higher
      3. Pip 19.0 or newer versions
      4. A user account with sudo privileges

Now, let’s follow these steps to install TensorFlow on Ubuntu:

1. Install the Python Development Environment

First, you need to download Python, the PIP package, and a virtual environment.

Below are some refer website links for you:

https://www.python.org/

https://pip.pypa.io/en/stable/installing/

https://docs.python.org/3/library/venv.html

To install these packages, run the following commands in the terminal:

sudo apt update

sudo apt install python3-dev python3-pip python3-venv

2. Create a Virtual Environment

Navigate to the directory where you want to store your Python 3.0 virtual environment. It can be in your home directory, or any other directory where your user can read and write permissions.

mkdir tensorflow_files

cd tensorflow_files

You are now inside the directory. To create a virtual environment, run the following command:

python3 -m venv virtualenv

This command will create a directory named virtualenv. It contains a copy of the Python binary, the PIP package manager, the standard Python library, and other supporting files.

3. Activate the Virtual Environment

Run the command:

source virtualenv/bin/activate

After activating the environment, the bin directory of the virtual environment will be added to the beginning of the $PATH variable. Your shell’s prompt will change, and it will show the name of the virtual environment you are currently using, i.e. virtualenv.

4. Update the PIP

Run the command below:

pip install –upgrade pip

5. Install TensorFlow

Now, the virtual environment is activated, and it’s running. So it’s time to install the TensorFlow package by running the following command:

pip install — upgrade TensorFlow

If you want to check if TensorFlow has been installed successfully, just simply run the following lines of code on Jupyter Notebook. Print the version of TensorFlow, and make a mathematical operation.

Conclusion

TensorFlow helps users implement complex machine learning and deep learning models to solve business problems. In this article, we covered the TensorFlow installation on Ubuntu. And there will be more in-depth knowledge in the next article.

At iRender, we bring to Tensorflow users cloud computing service with a variety of machine configuration packages from 1 to 6 Nvidia RTX 3090 GPUs on both Windows and Ubuntu operating systems. With simple operations, a friendly interface, affordable cost, 24/7 human support service, and especially free data transmission and environmental storage service, Tensorflow users in particular as well as Users in the field of AI / Deep Learning can completely rest assured to use our service for their training.

Watch the below video to see how to training in TensorFlow with Ubuntu OS on our server 3: RTX 3090.

So, don’t waste time any more, Sign up for an account today to experience our new but extremely effective service.

Thank you & Happy Training!

Source: www.tensorflow.org; www.simplilearn.com

Read more: What is TensorFlow?

, , , , , , , , , , , , , , , ,

Bella

Greeting everyone. I work as an Assistant Customer at iRender. I always hope to know more 3D artists and share benefits information with them.
Contact

INTEGRATIONS

Autodesk Maya
Autodesk 3DS Max
Blender
Cinema 4D
Houdini
SketchUp
Foundry Modo
Lumion
KeyShot
UE4
Twinmotion
Redshift
Octane
And many more…

iRENDER TEAM

MONDAY – SUNDAY
Hotline: (+84) 912-515-500
Skype: iRender Support
Email: [email protected]
Address: No.22 Thanh Cong Street, Hanoi, Vietnam

Contact