How to install tensorflow for python 2.7.17

I already completed to install tensorflow for python 3.
(https://docs.nvidia.com/deeplearning/frameworks/install-tf-jetson-platform/index.html)
But I also need to install tensorflow for python2(I use python2 and 3)
How can I install it?
I typed like below

sudo apt-get install python-pip
sudo pip install -U pip testresources setuptools
sudo pip install -U numpy==1.16.1 future==0.17.1 mock==3.0.5 h5py==2.9.0 keras_preprocessing==1.0.5 keras_applications==1.0.8 gast==0.2.2 enum34 futures protobuf
sudo pip install --pre --extra-index-url https://developer.download.nvidia.com/compute/redist/jp/v43 ‘tensorflow-gpu<2’

and there are some message like “the requirement was satisfied”
there is an error message after that
—Error message--------------------
nvidia@nvidia-desktop:~$ python
Python 2.7.17 (default, Nov 7 2019, 10:07:09)
[GCC 7.4.0] on linux2
Type “help”, “copyright”, “credits” or “license” for more information.

import tensorflow
Traceback (most recent call last):
File “”, line 1, in
ImportError: No module named tensorflow


Please help me.

Hi,

We don’t provide python2-based TensorFlow package for a while.

The latest python2 TF package is built with JetPack4.1.1.
And you can find it here: https://developer.download.nvidia.com/compute/redist/jp/v411/tensorflow-gpu/

Thanks.

Hi, I was in the same situation.
The last one available is for Jetpack 4.1.1, and it is located here: https://developer.download.nvidia.com/compute/redist/jp/v411/tensorflow-gpu/

So, in your command, instead of specifying “v43”, put a “v411” and you should be fine!

Hi, StefanoAldegheri

Thanks for the sharing.
You are right. The latest JetPack with python2 TensorFlow package should be 4.1.1.

Thanks a lot.