TensorFlow is one among the leading frameworks for deep learning and machine learning, and as of 2017. It is now integrating for Intel® Xeon Phi™ processors.
Here are the steps provided to provide a quick overview of the installation process in distinct operating systems using Python dependencies.
Step1: A 64-bit Python 3.5.x window is the only version that TensorFlow supports.
Head over to Python 3.5.x from python.org
Step 2: Select the 3.5.2 download from downloads
Step 3: Select either the x86-64 or amd64 installer like Windows x86-64 executable installer
Step 4: Choose Add Python 3.5 to PATH
Step 5: Now a message appears as “Setup was successful.”
Leave an Inquiry to learn Python Training in Bangalore
Open Command Prompt and check the version to confirm that the installation is successful.
Start with installing Homebrew (brew), which makes it easy to install a large number of different packages. Installing brew is simple:
Now, install Python 2
brew install python
Now install pip using the following command:
sudo apt-get install python-setuptools
sudo easy_install pip
Go to finder and create a folder to install everything. As soon as you create your virtual environment, a few folders should appear inside your folder.
virtualenv –system-site-packages SOME_PATH/SOME_FOLDER
Instead of entering the whole folder path every time, macOS provides a current directory with the “cd” command. Simply type “cd” with space at the end and hit enter.
After that go to finder, and then drag the folder to your terminal window that enables you to paste the absolute folder path to the end of your input.
cd /SOME_REALLY_LONG_PATH/SOME_FOLDER
Now activate the virtual environment that you have installed on the folder
source bin/activate
Now download the binary files from Google to install TensorFlow
Export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/mac/tensorflow-0.9.0rc0-py2-none-any.whl
Install them
sudo pip install –upgrade $TF_BINARY_URL
With this, installing Tensorflow on macOs is successful.
Before installing TensorFlow on Ubuntu, some prerequisites are required as follows:
An Ubuntu 16.04 server with 1GB of RAM, following Ubuntu 16.04 initial server setup guide, a sudo non-root user and at the firewall.
Install Git
Step 1: Installing TensorFlow,
Create a project-directory tf-demo
$ mkdir ~/tf-demo
Navigate to the newly created directory
$ cd ~/tf-demo
With this, a new tensorflow-dev directory that contains the packages you install while the environment is activated, including a standalone version of Python and pip.
$source tensorflow-dev/bin/activate
(tensorflow-dev)username@hostname:~/tf-demo $
Now, install TensorFlow in your virtual environment.
To install and upgrade TensorFlow newest version in PyPi, run the following command
(tensorflow-dev) $pip3 install --upgrade tensorflow
After successful installation, the output will be:
With this, the TensorFlow installation is completed. Make sure that it is working.
Our work-support plans provide precise options as per your project tasks. Whether you are a newbie or an experienced professional seeking assistance in completing project tasks, we are here with the following plans to meet your custom needs:
Name | Dates | |
---|---|---|
TensorFlow Training | Dec 21 to Jan 05 | View Details |
TensorFlow Training | Dec 24 to Jan 08 | View Details |
TensorFlow Training | Dec 28 to Jan 12 | View Details |
TensorFlow Training | Dec 31 to Jan 15 | View Details |
Ravindra Savaram is a Technical Lead at Mindmajix.com. His passion lies in writing articles on the most popular IT platforms including Machine learning, DevOps, Data Science, Artificial Intelligence, RPA, Deep Learning, and so on. You can stay up to date on all these technologies by following him on LinkedIn and Twitter.