9951 explained code solutions for 126 technologies


python-tensorflowHow can I install TensorFlow for Python 3.7?


To install TensorFlow for Python 3.7, you can use the pip package manager.

The following code block shows an example of how to install TensorFlow for Python 3.7:

pip install tensorflow

The output of the above command should look something like this:

Collecting tensorflow
  Downloading https://files.pythonhosted.org/packages/d3/f1/2e9a7b8a6dbea9b12f2b8d80d7d7d8f8deea7a2f5b6b9f2a6d2ab6d86ce2/tensorflow-1.13.1-cp37-cp37m-win_amd64.whl (63.1MB)
    100% |████████████████████████████████| 63.1MB 73kB/s
Collecting absl-py>=0.7.0 (from tensorflow)
  Downloading https://files.pythonhosted.org/packages/ac/a6/f9fbbf5f5ad7d1f9f6b8a6d48f1d7e3fea7f9a8fafd45f3f6a8f8cdbf845/absl-py-0.7.1.tar.gz (97kB)
    100% |████████████████████████████████| 102kB 1.5MB/s
Collecting keras-applications>=1.0.6 (from tensorflow)
  Downloading https://files.pythonhosted.org/packages/71/e3/19762fdfc62877ae9102edf6342d71b28fbfd9dea3d2f96a882ce099b03f/Keras_Applications-1.0.8-py2.py3-none-any.whl (50kB)
    100% |████████████████████████████████| 51kB 1.4MB/s
Collecting keras-preprocessing>=1.0.5 (from tensorflow)
  Downloading https://files.pythonhosted.org/packages/28/6a/8c1f62c37212d9fc441a7e9d4b7fbd3f6c9d7bf5f798a631ab10b1e179c6/Keras_Preprocessing-1.1.0-py2.py3-none-any.whl (41kB)
    100% |████████████████████████████████| 51kB 1.5MB/s
Installing collected packages: absl-py, keras-applications, keras-preprocessing, tensorflow
Successfully installed absl-py-0.7.1 keras-applications-1.0.8 keras-preprocessing-1.1.0 tensorflow-1.13.1

Alternatively, you can also download and install the pre-compiled TensorFlow binaries from here.

The steps to install TensorFlow for Python 3.7 are as follows:

  1. Install pip package manager.
  2. Use pip to install TensorFlow.
  3. Alternatively, download and install the pre-compiled TensorFlow binaries.

Edit this code on GitHub