Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy
 

How to install tensorflow via python pip




tensorflow - TensorFlow is an open source machine learning framework for everyone., it belongs to Classifiers:

- Environment :: GPU
- Environment :: GPU :: NVIDIA CUDA
- Environment :: GPU :: NVIDIA CUDA :: 11.2
- Intended Audience :: Education
- Intended Audience :: Science/Research
- License :: OSI Approved :: Apache Software License
- Programming Language :: Python :: 3 :: Only
- Programming Language :: Python :: 3.1
- Programming Language :: Python :: 3.10
- Topic :: Scientific/Engineering
- Topic :: Scientific/Engineering :: Artificial Intelligence
- Topic :: Scientific/Engineering :: Mathematics
- Topic :: Software Development :: Libraries :: Python Modules

When you know about this project and you want to new install tensorflow to support your project or you get trouble as ModuleNotFoundError: No module named "tensorflow" or ImportError: cannot import name "tensorflow" in your project, let follow this tutorial to install tensorflow



Installation:

Step 1: First, ensure you installed pip in your os, to check pip has been installed on your computer

In Windows (CMD):

py -m pip --version

In Unix/macOS:

python3 -m pip --version

Ensure pip, setuptools, and wheel are up to date:

In Windows (CMD):

py -m pip install --upgrade pip setuptools wheel

In Unix/macOS:

python3 -m pip install --upgrade pip setuptools wheel


Optional - If you want to install in virtual environment:

In Windows (CMD):

- Install virtualenv - if you installed it, please ignore

py -m pip install --user virtualenv

- Create a virtual environment

py -m venv test_tensorflow_env

- Active the virtual environment

test_tensorflow_env\Scripts\active

In Unix/macOS:

- Install virtualenv - if you installed it, please ignore

pip3 install virtualenv

- Create a virtual environment

python3 -m venv test_tensorflow_env

- Active the virtual environment

source test_tensorflow_env/bin/active


Step 2: OK, now, let flow below content to start the installation tensorflow

To install tensorflow on Windows(CMD):

py -m pip install tensorflow

To install tensorflow on Unix/macOs:

pip install tensorflow


Step 3: If you want to install a specific tensorflow version, add ==<tensorflow version> to the end command line

Example:

pip install tensorflow==0.12.0


Please see the version list below table:

VersionReleased dateCommand
tensorflow 2.9.12022-05-23T17:21:49Windows:

py -m pip install tensorflow==2.9.1

Unix/macOs:

pip install tensorflow==2.9.1

tensorflow 2.9.02022-05-16T20:25:56Windows:

py -m pip install tensorflow==2.9.0

Unix/macOs:

pip install tensorflow==2.9.0

tensorflow 2.8.22022-05-23T17:15:27Windows:

py -m pip install tensorflow==2.8.2

Unix/macOs:

pip install tensorflow==2.8.2

tensorflow 2.8.12022-05-16T19:21:57Windows:

py -m pip install tensorflow==2.8.1

Unix/macOs:

pip install tensorflow==2.8.1

tensorflow 2.8.02022-02-02T15:33:06Windows:

py -m pip install tensorflow==2.8.0

Unix/macOs:

pip install tensorflow==2.8.0

tensorflow 2.7.32022-05-23T17:06:42Windows:

py -m pip install tensorflow==2.7.3

Unix/macOs:

pip install tensorflow==2.7.3

tensorflow 2.7.22022-05-16T18:54:48Windows:

py -m pip install tensorflow==2.7.2

Unix/macOs:

pip install tensorflow==2.7.2

tensorflow 2.7.12022-02-02T16:58:42Windows:

py -m pip install tensorflow==2.7.1

Unix/macOs:

pip install tensorflow==2.7.1

tensorflow 2.7.02021-11-04T21:19:34Windows:

py -m pip install tensorflow==2.7.0

Unix/macOs:

pip install tensorflow==2.7.0

tensorflow 2.6.52022-05-23T17:06:53Windows:

py -m pip install tensorflow==2.6.5

Unix/macOs:

pip install tensorflow==2.6.5

tensorflow 2.6.42022-05-16T18:35:54Windows:

py -m pip install tensorflow==2.6.4

Unix/macOs:

pip install tensorflow==2.6.4

tensorflow 2.6.32022-02-02T16:56:09Windows:

py -m pip install tensorflow==2.6.3

Unix/macOs:

pip install tensorflow==2.6.3

tensorflow 2.6.22021-11-04T15:19:46Windows:

py -m pip install tensorflow==2.6.2

Unix/macOs:

pip install tensorflow==2.6.2

tensorflow 2.6.12021-11-01T20:30:07Windows:

py -m pip install tensorflow==2.6.1

Unix/macOs:

pip install tensorflow==2.6.1

tensorflow 2.6.02021-08-11T17:09:07Windows:

py -m pip install tensorflow==2.6.0

Unix/macOs:

pip install tensorflow==2.6.0

tensorflow 2.5.32022-02-02T16:55:58Windows:

py -m pip install tensorflow==2.5.3

Unix/macOs:

pip install tensorflow==2.5.3

tensorflow 2.5.22021-11-01T20:22:54Windows:

py -m pip install tensorflow==2.5.2

Unix/macOs:

pip install tensorflow==2.5.2

tensorflow 2.5.12021-08-10T21:51:57Windows:

py -m pip install tensorflow==2.5.1

Unix/macOs:

pip install tensorflow==2.5.1

tensorflow 2.5.02021-05-13T17:28:39Windows:

py -m pip install tensorflow==2.5.0

Unix/macOs:

pip install tensorflow==2.5.0

tensorflow 2.4.42021-11-01T20:00:24Windows:

py -m pip install tensorflow==2.4.4

Unix/macOs:

pip install tensorflow==2.4.4

tensorflow 2.4.32021-08-10T21:52:30Windows:

py -m pip install tensorflow==2.4.3

Unix/macOs:

pip install tensorflow==2.4.3

tensorflow 2.4.22021-06-15T21:03:59Windows:

py -m pip install tensorflow==2.4.2

Unix/macOs:

pip install tensorflow==2.4.2

tensorflow 2.4.12021-01-21T19:38:00Windows:

py -m pip install tensorflow==2.4.1

Unix/macOs:

pip install tensorflow==2.4.1

tensorflow 2.4.02020-12-14T17:58:05Windows:

py -m pip install tensorflow==2.4.0

Unix/macOs:

pip install tensorflow==2.4.0

tensorflow 2.3.42021-08-10T21:51:35Windows:

py -m pip install tensorflow==2.3.4

Unix/macOs:

pip install tensorflow==2.3.4

tensorflow 2.3.32021-06-15T21:03:30Windows:

py -m pip install tensorflow==2.3.3

Unix/macOs:

pip install tensorflow==2.3.3

tensorflow 2.3.22021-01-06T16:59:41Windows:

py -m pip install tensorflow==2.3.2

Unix/macOs:

pip install tensorflow==2.3.2

tensorflow 2.3.12020-09-24T19:23:11Windows:

py -m pip install tensorflow==2.3.1

Unix/macOs:

pip install tensorflow==2.3.1

tensorflow 2.3.02020-07-27T19:03:06Windows:

py -m pip install tensorflow==2.3.0

Unix/macOs:

pip install tensorflow==2.3.0

tensorflow 2.2.32021-06-15T21:03:54Windows:

py -m pip install tensorflow==2.2.3

Unix/macOs:

pip install tensorflow==2.2.3

tensorflow 2.2.22021-01-06T16:59:17Windows:

py -m pip install tensorflow==2.2.2

Unix/macOs:

pip install tensorflow==2.2.2

tensorflow 2.2.12020-09-24T19:03:23Windows:

py -m pip install tensorflow==2.2.1

Unix/macOs:

pip install tensorflow==2.2.1

tensorflow 2.2.02020-05-07T17:59:27Windows:

py -m pip install tensorflow==2.2.0

Unix/macOs:

pip install tensorflow==2.2.0

tensorflow 2.1.42021-06-15T21:01:30Windows:

py -m pip install tensorflow==2.1.4

Unix/macOs:

pip install tensorflow==2.1.4

tensorflow 2.1.32021-01-06T16:58:52Windows:

py -m pip install tensorflow==2.1.3

Unix/macOs:

pip install tensorflow==2.1.3

tensorflow 2.1.22020-09-24T18:52:44Windows:

py -m pip install tensorflow==2.1.2

Unix/macOs:

pip install tensorflow==2.1.2

tensorflow 2.1.12020-05-18T16:16:18Windows:

py -m pip install tensorflow==2.1.1

Unix/macOs:

pip install tensorflow==2.1.1

tensorflow 2.1.02020-01-08T19:46:01Windows:

py -m pip install tensorflow==2.1.0

Unix/macOs:

pip install tensorflow==2.1.0

tensorflow 2.0.42021-01-06T17:00:10Windows:

py -m pip install tensorflow==2.0.4

Unix/macOs:

pip install tensorflow==2.0.4

tensorflow 2.0.32020-09-24T18:47:47Windows:

py -m pip install tensorflow==2.0.3

Unix/macOs:

pip install tensorflow==2.0.3

tensorflow 2.0.22020-05-18T16:10:54Windows:

py -m pip install tensorflow==2.0.2

Unix/macOs:

pip install tensorflow==2.0.2

tensorflow 2.0.12020-01-26T15:50:05Windows:

py -m pip install tensorflow==2.0.1

Unix/macOs:

pip install tensorflow==2.0.1

tensorflow 2.0.02019-09-30T17:23:22Windows:

py -m pip install tensorflow==2.0.0

Unix/macOs:

pip install tensorflow==2.0.0

tensorflow 1.15.52021-01-06T17:16:34Windows:

py -m pip install tensorflow==1.15.5

Unix/macOs:

pip install tensorflow==1.15.5

tensorflow 1.15.42020-09-24T18:38:59Windows:

py -m pip install tensorflow==1.15.4

Unix/macOs:

pip install tensorflow==1.15.4

tensorflow 1.15.32020-05-18T16:06:07Windows:

py -m pip install tensorflow==1.15.3

Unix/macOs:

pip install tensorflow==1.15.3

tensorflow 1.15.22020-01-26T16:08:24Windows:

py -m pip install tensorflow==1.15.2

Unix/macOs:

pip install tensorflow==1.15.2

tensorflow 1.15.02019-10-16T17:28:36Windows:

py -m pip install tensorflow==1.15.0

Unix/macOs:

pip install tensorflow==1.15.0

tensorflow 1.14.02019-06-19T05:06:15Windows:

py -m pip install tensorflow==1.14.0

Unix/macOs:

pip install tensorflow==1.14.0

tensorflow 1.13.22019-07-16T09:20:18Windows:

py -m pip install tensorflow==1.13.2

Unix/macOs:

pip install tensorflow==1.13.2

tensorflow 1.13.12019-02-26T18:01:18Windows:

py -m pip install tensorflow==1.13.1

Unix/macOs:

pip install tensorflow==1.13.1

tensorflow 1.12.32019-06-21T23:53:44Windows:

py -m pip install tensorflow==1.12.3

Unix/macOs:

pip install tensorflow==1.12.3

tensorflow 1.12.22019-04-18T20:25:58Windows:

py -m pip install tensorflow==1.12.2

Unix/macOs:

pip install tensorflow==1.12.2

tensorflow 1.12.02018-11-06T00:26:28Windows:

py -m pip install tensorflow==1.12.0

Unix/macOs:

pip install tensorflow==1.12.0

tensorflow 1.11.02018-09-27T18:51:41Windows:

py -m pip install tensorflow==1.11.0

Unix/macOs:

pip install tensorflow==1.11.0

tensorflow 1.10.12018-08-24T16:57:06Windows:

py -m pip install tensorflow==1.10.1

Unix/macOs:

pip install tensorflow==1.10.1

tensorflow 1.10.02018-08-08T20:46:17Windows:

py -m pip install tensorflow==1.10.0

Unix/macOs:

pip install tensorflow==1.10.0

tensorflow 1.9.02018-07-10T23:23:46Windows:

py -m pip install tensorflow==1.9.0

Unix/macOs:

pip install tensorflow==1.9.0

tensorflow 1.8.02018-04-28T04:28:36Windows:

py -m pip install tensorflow==1.8.0

Unix/macOs:

pip install tensorflow==1.8.0

tensorflow 1.7.12018-05-08T18:29:38Windows:

py -m pip install tensorflow==1.7.1

Unix/macOs:

pip install tensorflow==1.7.1

tensorflow 1.7.02018-03-29T18:36:20Windows:

py -m pip install tensorflow==1.7.0

Unix/macOs:

pip install tensorflow==1.7.0

tensorflow 1.6.02018-03-01T22:56:46Windows:

py -m pip install tensorflow==1.6.0

Unix/macOs:

pip install tensorflow==1.6.0

tensorflow 1.5.12018-03-20T21:39:13Windows:

py -m pip install tensorflow==1.5.1

Unix/macOs:

pip install tensorflow==1.5.1

tensorflow 1.5.02018-01-26T21:33:31Windows:

py -m pip install tensorflow==1.5.0

Unix/macOs:

pip install tensorflow==1.5.0

tensorflow 1.4.12017-12-08T09:01:57Windows:

py -m pip install tensorflow==1.4.1

Unix/macOs:

pip install tensorflow==1.4.1

tensorflow 1.4.02017-11-01T22:14:18Windows:

py -m pip install tensorflow==1.4.0

Unix/macOs:

pip install tensorflow==1.4.0

tensorflow 1.3.02017-08-16T21:11:44Windows:

py -m pip install tensorflow==1.3.0

Unix/macOs:

pip install tensorflow==1.3.0

tensorflow 1.2.12017-06-30T01:01:33Windows:

py -m pip install tensorflow==1.2.1

Unix/macOs:

pip install tensorflow==1.2.1

tensorflow 1.2.02017-06-15T16:35:03Windows:

py -m pip install tensorflow==1.2.0

Unix/macOs:

pip install tensorflow==1.2.0

tensorflow 1.1.02017-04-21T16:25:57Windows:

py -m pip install tensorflow==1.1.0

Unix/macOs:

pip install tensorflow==1.1.0

tensorflow 1.0.12017-03-08T00:50:12Windows:

py -m pip install tensorflow==1.0.1

Unix/macOs:

pip install tensorflow==1.0.1

tensorflow 1.0.02017-02-15T05:43:41Windows:

py -m pip install tensorflow==1.0.0

Unix/macOs:

pip install tensorflow==1.0.0

tensorflow 0.12.12016-12-28T22:00:37Windows:

py -m pip install tensorflow==0.12.1

Unix/macOs:

pip install tensorflow==0.12.1

tensorflow 0.12.02016-12-19T19:10:10Windows:

py -m pip install tensorflow==0.12.0

Unix/macOs:

pip install tensorflow==0.12.0


Step 4: Otherwise, you can install tensorflow from local archives:

Download the distribution file from tensorflow-2.9.1-cp310-cp310-win_amd64.whl or the specific tensorflow version in the below list of distribution

After that, install by command:

On Windows(CMD):

py -m pip install <path_to_tensorflow_downloaded_file>

On Unix/macOs:

pip install <path_to_tensorflow_downloaded_file>


List distribution:


Project link:

- Homepage
- Download