Installation tensorflow Jetson Nano

Hi,

I’m trying to install tensorflow from this link as a prerequisite for uff-converter on my jetson-nano:
https://docs.nvidia.com/deeplearning/frameworks/install-tf-jetson-platform/index.html

I installed all packages from prerequisites and dependancies part. Then, during installation of tensorflow, I got a problem when building wheel of grpcio (pep 517): ERROR: Failed building wheel for grpcio. Even with the following command pip3 install grpcio.

I spent few hours trying to fix this problem without success.

If someone has an idea, thanks.

1 Like

I have the same issues.

Hi,

Which JetPack version do you use?
We can install grpcio with pip3 directly on JetPack 4.4 product release.

$ sudo pip3 install grpcio

Collecting grpcio
  Downloading https://files.pythonhosted.org/packages/e3/0e/f56aa1f8200ae3c5d38305e69f5920caa480c7ff54ae4d8a5f57d1d69fa4/grpcio-1.31.0.tar.gz (20.0MB)
    100% |████████████████████████████████| 20.0MB 27kB/s 
Requirement already satisfied: six>=1.5.2 in /usr/lib/python3/dist-packages (from grpcio)
Installing collected packages: grpcio
  Running setup.py install for grpcio ... done
Successfully installed grpcio-1.31.0

Thanks.

Thanks for the reply, I’m using jetpack 4.4. I tried the following command line:
“pip3 install grpcio --no-use-pep517” but still with the same issue

Failed to build grpcio
DEPRECATION: Could not build wheels for grpcio which do not use PEP 517. pip will fall back to legacy ‘setup.py install’ for these. pip 21.0 will remove support for this functionality. A possible replacement is to fix the wheel build issue reported above. You can find discussion regarding this at https://github.com/pypa/pip/issues/8368.

Hi,

Do you mind to tell us why you need a package without using pep517?
We can install TensorFlow with the default grpcio package on JetPack4.4 without issue.

Thanks.

I tried to install tensorflow but I’ve had a problem with grpcio. Then, I tried to install it manually with the following command “pip3 install grpcio” which didn’t work because of problem with pep517, then I tried the following command “pip3 install grpcio --no-use-pep517” without success too. All of this commands bring me the same problem. I don’t understand where this problem come from. Why could I download numpy for example with pip3 and not grpcio ?

I solved my problem by installing specific version of setuptools. I had the 50.0 version by using the command line"pip3 install -U pip testresources setuptools" from your tuto. I installed the 49.6 (pip3 install setuptools==49.6.0) version of setuptools and it’s working now to build grpcio and I could successfully convert posenet model on my jetson.

1 Like

Yes,you are right!
thank you!