9951 explained code solutions for 126 technologies

python-tensorflowHow do I install TensorFlow using pip and PyPI?

Installing TensorFlow using pip and PyPI is very easy and straightforward.

First, make sure you have a working installation of Python 3.5 or higher, pip, and virtualenv.

Then, you can use pip to install TensorFlow from PyPI. To do this, open a terminal and type:

pip install tensorflow

You should see output similar to the following:

Collecting tensorflow
  Downloading https://files.pythonhosted.org/packages/85/d4/c0cd1057b331bc38b65478302114194bd8e1b9c2bbc06e300935c0e93d90/tensorflow-2.1.0-cp36-cp36m-manylinux2010_x86_64.whl (421.8MB)
    |████████████████████████████████| 421.8MB 3.7MB/s
Installing collected packages: tensorflow
Successfully installed tensorflow-2.1.0

Code explanation

  1. pip install tensorflow - the command to install TensorFlow from PyPI

Helpful links

Edit this code on GitHub