If I want to install Python 3.6 for Jetson TX2 under BalenaOS how do I do it? I found that the JetsonHacks github has python 3.5 WHL files but I can’t find 3.6. Is this a “install it from source” situation?
Ultimately I want to install tensorflow.
If I want to install Python 3.6 for Jetson TX2 under BalenaOS how do I do it? I found that the JetsonHacks github has python 3.5 WHL files but I can’t find 3.6. Is this a “install it from source” situation?
Ultimately I want to install tensorflow.
If I try to install the python 3.5 version of tensorflow using this command:
pip3 install --extra-index-url=https://developer.download.nvidia.com/compute/redist/jp/v33/ tensorflow-gpu
I get this error:
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://developer.download.nvidia.com/compute/redist/jp/v33/numpy/
Hi,
The error is from installing numpy under the nvidia download center.
numpy is a third-party library and you should be able to install it directly with pip3:
Could you install numpy first and retry the TensorFlow package again?
pip3 install numpy --user
Thanks.
When I try to verify my tensorflow installation in a Balenalib based docker container for Jetson TX2 I get the following error:
python3
Python 3.6.8 (default, Jan 12 2019, 04:57:27)
[GCC 6.3.0 20170516] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorflow
Traceback (most recent call last):
File "/root/.local/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow.py", line 58, in <module>
from tensorflow.python.pywrap_tensorflow_internal import *
File "/root/.local/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 28, in <module>
_pywrap_tensorflow_internal = swig_import_helper()
File "/root/.local/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "/usr/local/lib/python3.6/imp.py", line 243, in load_module
return load_dynamic(name, filename, file)
File "/usr/local/lib/python3.6/imp.py", line 343, in load_dynamic
return _load(spec)
ImportError: libcublas.so.10.0: cannot open shared object file: No such file or directory
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/root/.local/lib/python3.6/site-packages/tensorflow/__init__.py", line 24, in <module>
from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import
File "/root/.local/lib/python3.6/site-packages/tensorflow/python/__init__.py", line 49, in <module>
from tensorflow.python import pywrap_tensorflow
File "/root/.local/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow.py", line 74, in <module>
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "/root/.local/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow.py", line 58, in <module>
from tensorflow.python.pywrap_tensorflow_internal import *
File "/root/.local/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 28, in <module>
_pywrap_tensorflow_internal = swig_import_helper()
File "/root/.local/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "/usr/local/lib/python3.6/imp.py", line 243, in load_module
return load_dynamic(name, filename, file)
File "/usr/local/lib/python3.6/imp.py", line 343, in load_dynamic
return _load(spec)
ImportError: libcublas.so.10.0: cannot open shared object file: No such file or directory
The balenalib container is running on the Jetson TX2:
# uname -a
Linux 88b47154010c 4.4.38-l4t-r28.2+g174510d #2 SMP PREEMPT Fri Mar 22 13:53:51 UTC 2019 aarch64 GNU/Linux
# python3 --version
Python 3.6.8
# pip3 --version
pip 19.1.1 from /usr/local/lib/python3.6/site-packages/pip (python 3.6)
And the the following packages with pip3:
Package Version
-------------------- -------------
absl-py 0.7.1
astor 0.8.0
gast 0.2.2
grpcio 1.21.1
h5py 2.9.0
Keras-Applications 1.0.7
Keras-Preprocessing 1.0.9
Markdown 3.1.1
mock 3.0.5
numpy 1.16.3
pip 19.1.1
protobuf 3.7.1
setuptools 41.0.1
six 1.12.0
tensorboard 1.13.1
tensorflow-estimator 1.13.0
tensorflow-gpu 1.13.1+nv19.5
termcolor 1.1.0
virtualenv 16.6.0
Werkzeug 0.15.4
wheel 0.33.4
How do I install libcublas.so? Which Jetpack module does that belong to?
Hi,
libcublas.so belongs to CUDA toolkit.
Please make sure your CUDA library is accessible in the container first.
Thanks.