How to install the sdk and tensorflow?

I’m trying to install tensorflow but I get an error

sudo pip3 install -U numpy grpcio absl-py py-cpuinfo psutil portpicker grpcio six mock requests gast h5py astor termcolor
Traceback (most recent call last):
File “/usr/bin/pip3”, line 9, in
from pip import main
ImportError: cannot import name ‘main’

Do I need to install the sdk on the Jetson Nano using the image?


This is a known issue of pip3.
Please fix it with following workaround:

  • Edit ‘/usr/bin/pip3’
diff --git a/pip3 b/pip3
index 56bbb2b..62f26b9 100755
--- a/pip
+++ b/pip
@@ -6,6 +6,6 @@ import sys
 # Run the main entry point, similarly to how setuptools does it, but because
 # we didn't install the actual entry point from, don't use the
 # pkg_resources API.
-from pip import main
+from pip import __main__
 if __name__ == '__main__':
-    sys.exit(main())
+    sys.exit(__main__._main())


Hi, It seems to be working. Thanks!