Tensorflow Intallation Failing on Xavier

I follow the instruction to install tensorflow on Xavier, and didn’t get anything wrong while installing.

“Python 2.7+JetPack4.1.1”

pip install --extra-index-url https://developer.download.nvidia.com/compute/redist/jp/v411 tensorflow-gpu==1.13.0rc0+nv19.2 --user

nvidia@jetson-0423518031910:~$ sudo pip install --extra-index-url https://developer.download.nvidia.com/compute/redist/jp/v411 tensorflow-gpu==1.13.0rc0+nv19.2 --user
[sudo] password for nvidia:
WARNING: The directory ‘/home/nvidia/.cache/pip/http’ or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo’s -H flag.
WARNING: The directory ‘/home/nvidia/.cache/pip’ or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo’s -H flag.
Looking in indexes: https://pypi.org/simple, https://developer.download.nvidia.com/compute/redist/jp/v411
Requirement already satisfied: tensorflow-gpu==1.13.0rc0+nv19.2 in ./.local/lib/python3.6/site-packages (1.13.0rc0+nv19.2)
Requirement already satisfied: absl-py>=0.1.6 in ./.local/lib/python3.6/site-packages (from tensorflow-gpu==1.13.0rc0+nv19.2) (0.7.1)
Requirement already satisfied: numpy>=1.13.3 in /usr/local/lib/python3.6/dist-packages (from tensorflow-gpu==1.13.0rc0+nv19.2) (1.17.0)
Requirement already satisfied: protobuf>=3.6.1 in /usr/local/lib/python3.6/dist-packages (from tensorflow-gpu==1.13.0rc0+nv19.2) (3.9.1)
Requirement already satisfied: tensorflow-estimator>=1.13rc0 in ./.local/lib/python3.6/site-packages (from tensorflow-gpu==1.13.0rc0+nv19.2) (1.14.0)
Requirement already satisfied: keras-preprocessing>=1.0.5 in ./.local/lib/python3.6/site-packages (from tensorflow-gpu==1.13.0rc0+nv19.2) (1.1.0)
Requirement already satisfied: wheel>=0.26 in /usr/local/lib/python3.6/dist-packages (from tensorflow-gpu==1.13.0rc0+nv19.2) (0.33.4)
Requirement already satisfied: six>=1.10.0 in /usr/local/lib/python3.6/dist-packages (from tensorflow-gpu==1.13.0rc0+nv19.2) (1.12.0)
Requirement already satisfied: keras-applications>=1.0.6 in ./.local/lib/python3.6/site-packages (from tensorflow-gpu==1.13.0rc0+nv19.2) (1.0.8)
Requirement already satisfied: astor>=0.6.0 in ./.local/lib/python3.6/site-packages (from tensorflow-gpu==1.13.0rc0+nv19.2) (0.8.0)
Requirement already satisfied: gast>=0.2.0 in ./.local/lib/python3.6/site-packages (from tensorflow-gpu==1.13.0rc0+nv19.2) (0.2.2)
Requirement already satisfied: grpcio>=1.8.6 in /usr/local/lib/python3.6/dist-packages (from tensorflow-gpu==1.13.0rc0+nv19.2) (1.23.0)
Requirement already satisfied: tensorboard<1.13.0,>=1.12.0 in ./.local/lib/python3.6/site-packages (from tensorflow-gpu==1.13.0rc0+nv19.2) (1.12.2)
Requirement already satisfied: termcolor>=1.1.0 in ./.local/lib/python3.6/site-packages (from tensorflow-gpu==1.13.0rc0+nv19.2) (1.1.0)
Requirement already satisfied: setuptools in /usr/lib/python3/dist-packages (from protobuf>=3.6.1->tensorflow-gpu==1.13.0rc0+nv19.2) (39.0.1)
Requirement already satisfied: h5py in ./.local/lib/python3.6/site-packages (from keras-applications>=1.0.6->tensorflow-gpu==1.13.0rc0+nv19.2) (2.9.0)
Requirement already satisfied: werkzeug>=0.11.10 in ./.local/lib/python3.6/site-packages (from tensorboard<1.13.0,>=1.12.0->tensorflow-gpu==1.13.0rc0+nv19.2) (0.15.5)
Requirement already satisfied: markdown>=2.6.8 in ./.local/lib/python3.6/site-packages (from tensorboard<1.13.0,>=1.12.0->tensorflow-gpu==1.13.0rc0+nv19.2) (3.1.1)

but when I testing, I got this error.

nvidia@jetson-0423518031910:~$ python
Python 2.7.15+ (default, Nov 27 2018, 23:36:35)
[GCC 7.3.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

I can’t figure out why.
(either on python3 with pip3 install)

Hi,

Could you try this?

Run this command to get the installation location information:

$ pip3 show tensorflow-gpu

Name: tensorflow-gpu
Version: 1.14.0+nv19.7
Summary: TensorFlow is an open source machine learning framework for everyone.
Home-page: https://www.tensorflow.org/
Author: Google Inc.
Author-email: packages@tensorflow.org
License: Apache 2.0
Location: /usr/local/lib/python3.6/dist-packages
Requires: absl-py, wrapt, gast, google-pasta, grpcio, astor, termcolor, wheel, protobuf, six, numpy, keras-preprocessing, tensorboard, tensorflow-estimator, keras-applications
Required-by:

Then add the location into the python path.

# export PYTHONPATH=[your path]:$PYTHONPATH.
export PYTHONPATH=/usr/local/lib/python3.6/dist-packages:$PYTHONPATH.

Thanks.