Tensorflow Installation Guide Python
Tags: python, machinelearning, ai, tensorflow
Published: 2022-12-14 09:37:37

In this tutorial you’ll learn how you can install TensorFlow using pip.

We can download TensorFlow in 2 ways:

1. Through pip (Python package library)
2. Through Anaconda Navigator (conda)

We are going to see both of the ways in this tutorial so for this first you need to download python’s latest version if you already have python installed then you can skip this part.

### Download and install Python.
For downloading and installing Python on your computer, you can visit the official [Python website](https://www.python.org/) and click on the “Download” button. This will take you to the download page, where you can choose the latest stable version of Python for your operating system.

![python download button](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/01lfvg53lpktms24hxgr.png)

Download latest version

![download latest python version](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/h0u7695uwcjo706hu1i1.png)

Once you have downloaded the Python installer, you can run it and follow the on-screen instructions to install Python on your system. This process will typically involve selecting the installation location, choosing the optional features you want to include, and configuring any additional settings as per your need.

One important thing in the end of the installation check the ADD to PATH to make your python accessible globally in your system if you don’t check that option then you can’t run your python code globally.

After the installation is complete, you can verify that Python has been installed successfully by opening a command prompt or terminal window and typing “python” (without the quotes). This will launch the Python interpreter, which allows you to run Python commands and scripts directly from the command line.
![run python interpeter](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nys2pidt0oeg08icf6qr.png)

Alternatively, you can also download and install Python using a package manager like pip or conda. This can be a convenient option if you want to manage multiple Python installations or environments on your system. To do so, you can refer to the documentation for pip or conda to learn how to install Python using these tools.

### What is pip?
pip is a package manager for Python. It is a tool that allows you to easily install, upgrade, and manage Python packages (i.e. modules, libraries, and frameworks) that are available on the Python Package Index (PyPI).

Python packages are code libraries that provide specific functionality or features, such as support for a particular data format, algorithm, or library. You can easily download and install these packages on your computer, and use them in your Python projects by using pip. This can save you a lot of time and effort, as you don’t have to manually download and install each package yourself.

In addition to managing package installation, pip also provides many other useful features, such as the ability to list installed packages, upgrade outdated packages, and create and manage Python environments. This makes it an essential tool for Python developers, and it is typically included by default when you install Python on your system.

To use pip, you can run it from the command line by typing “pip” followed by the appropriate command and any options or arguments. For example, to install a package using pip, you can use the following command:

```vim
pip install <package-name>
```

### Installing TensorFlow Using pip
Now we have downloaded python and also have idea what pip is and how can we install packages using pip so let’s install TensorFlow now.

To install TensorFlow using pip, you can use the following command:

```vim
pip install tensorflow
```

This will install the latest version of TensorFlow, along with any required dependencies. Once the installation is complete, you can import TensorFlow into your Python script and begin using it to build and train machine learning models.

If you are using a specific version of TensorFlow (e.g. TensorFlow 2.0), you can specify that version by using the following command:

```vim
pip install tensorflow==2.0
```

You can also install TensorFlow using conda, a popular package and environment manager for Python. To do so, you can use the following command:

```vim
conda install tensorflow
```

This will install the latest version of TensorFlow, along with any required dependencies, within a conda environment. You can then activate the environment and import TensorFlow into your Python script to begin using it.

So you can install TensorFlow, either using pip or conda it depends on you which one you like, because both methods just as simple as that, but the pip method is the easiest because pip comes with python installation as default while conda needs to be download first, then you can download TensorFlow or any other package.

If you are getting any problem to run the program, or installation issue, then you need to download and install Microsoft Visual C++ 2015, and set up in our system then the TensorFlow will run in your system.

Yo can download Microsoft Visual C++ 2015 from the below link: [https://www.microsoft.com/en-us/download/confirmation.aspx?id=53587](https://www.microsoft.com/en-us/download/confirmation.aspx?id=53587)

_My Personal Blogging Website : [Programming Geeks Club](https://programmingeeksclub.com/)_
_My Facebook Page : [Programming Geeks Club](https://www.facebook.com/profile.php?id=100086258693659)_
_My Telegram Channel : [Programming Geeks Club](https://t.me/dpgcl)_
_My Twitter Account : [Kuldeep Singh](https://twitter.com/kusinghofficial)_
_My Youtube Channel: [Programming Geeks Club](https://youtube.com/@programmingeeksclub)_