Hello, I’m encountering an issue while installing TensorFlow on my NVIDIA Jetson Xavier NX. Here’s a breakdown of my setup and the error I’m facing:
System Information:
Device: NVIDIA Jetson Xavier NX
Package: nvidia-jetpack
Version: 4.6.5-b29
Architecture: arm64
PIP Version: ppip 21.3.1
Python Version: Python 3.6.9
Steps Taken:
Followed the official Nvidia documentation for installing TensorFlow on the Jetson platform: Installing TensorFlow for Jetson Platform - NVIDIA Docs
I used the following command to install TensorFlow 2.5.0:
pip3 install --pre --extra-index-url https://developer.download.nvidia.com/compute/redist/jp/v46 tensorflow==2.5.0
What I’m Seeing:
pip3 list
does not show tensorflow
but other TensorFlow packages like tensorboard etc.
I also treied importing TensorFlow using import tensorflow
results in a ModuleNotFoundError: No module named 'tensorflow'
.
Error Message:
import tensorflow
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'tensorflow' 1. stackoverflow.com stackoverflow.com
Hi,
For JetPack 4 environment, please use the command in the below topic instead:
Our official TensorFlow release for Jetson Nano!
Python 3.6+JetPack4.6.3
$ sudo apt-get update
$ sudo apt-get install -y python3-pip pkg-config
$ sudo apt-get install -y libhdf5-serial-dev hdf5-tools libhdf5-dev zlib1g-dev zip libjpeg8-dev liblapack-dev libblas-dev gfortran
$ sudo ln -s /usr/include/locale.h /usr/include/xlocale.h
$ sudo pip3 install --verbose 'protobuf<4' 'Cython<3'
$ sudo wget --no-check-certificate https://developer.download.nvidia.com/compute/redist/jp/v461/tensorflow/tens…
Thanks.
Hey!
I have executed this code:
$ sudo apt-get update
$ sudo apt-get install -y python3-pip pkg-config
$ sudo apt-get install -y libhdf5-serial-dev hdf5-tools libhdf5-dev zlib1g-dev zip libjpeg8-dev liblapack-dev libblas-dev gfortran
$ sudo ln -s /usr/include/locale.h /usr/include/xlocale.h
$ sudo pip3 install --verbose 'protobuf<4' 'Cython<3'
$ sudo wget --no-check-certificate https://developer.download.nvidia.com/compute/redist/jp/v461/tensorflow/tensorflow-2.7.0+nv22.1-cp36-cp36m-linux_aarch64.whl
$ sudo pip3 install --verbose tensorflow-2.7.0+nv22.1-cp36-cp36m-linux_aarch64.whl
However, when I ran pip3 list
, I couldn’t find tensorflow
listed. Additionally, importing tensorflow
resulted in an error.
Edit: This worked for me.
sudo apt-get update
sudo apt-get install -y python3-pip pkg-config
sudo apt-get install -y libhdf5-serial-dev hdf5-tools libhdf5-dev zlib1g-dev zip libjpeg8-dev liblapack-dev libblas-dev gfortran
sudo ln -s /usr/include/locale.h /usr/include/xlocale.h
sudo pip3 install --verbose 'protobuf<4' 'Cython<3'
sudo wget --no-check-certificate https://developer.download.nvidia.com/compute/redist/jp/v461/tensorflow/tensorflow-2.7.0+nv22.1-cp36-cp36m-linux_aarch64.whl
sudo pip3 install numpy==1.19.4
sudo pip3 install --verbose tensorflow-2.7.0+nv22.1-cp36-cp36m-linux_aarch64.whl
There is no update from you for a period, assuming this is not an issue anymore.
Hence, we are closing this topic. If need further support, please open a new one.
Thanks
Hi,
Does the import TensorFlow work after the installation?
Thanks.