Use jetson nano
Flash the mirror GitHub - Qengineering/Jetson-Nano-Ubuntu-20-image: Jetson Nano with Ubuntu 20.04 image
And it already installed pytorch like below
cat /usr/local/lib/python3.8/dist-packages/torch/version.py __version__ = '1.9.0a0+gitd69c22d' debug = False cuda = '10.2' git_version = 'd69c22dd61a2f006dcfe1e3ea8468a3ecaf931aa' hip = None
But it seems like I can use pytorch but torchaudio
error like below
Python 3.8.10 (default, Nov 26 2021, 20:14:08) [GCC 9.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import torchaudio Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/jetson/.local/lib/python3.8/site-packages/torchaudio/__init__.py", line 1, in <module> from . import extension # noqa: F401 File "/home/jetson/.local/lib/python3.8/site-packages/torchaudio/extension/__init__.py", line 5, in <module> _init_extension() File "/home/jetson/.local/lib/python3.8/site-packages/torchaudio/extension/extension.py", line 11, in _init_extension _init_script_module(ext) File "/home/jetson/.local/lib/python3.8/site-packages/torchaudio/extension/extension.py", line 19, in _init_script_module torch.classes.load_library(path) File "/usr/local/lib/python3.8/dist-packages/torch/_classes.py", line 46, in load_library torch.ops.load_library(path) File "/usr/local/lib/python3.8/dist-packages/torch/_ops.py", line 104, in load_library ctypes.CDLL(path) File "/usr/lib/python3.8/ctypes/__init__.py", line 373, in __init__ self._handle = _dlopen(self._name, mode) OSError: /home/jetson/.local/lib/python3.8/site-packages/torchaudio/_torchaudio.so: undefined symbol: _ZNK5torch8autograd4Node4nameEv
and after some search, found that
and it seems I need to install torchaudio==0.9.0
I installed that by
pip install torchaudio==0.9.0 -f https://download.pytorch.org/whl/torch_stable.html
But finally the problem still exits, I could not import torchaudio
OSError: /home/jetson/.local/lib/python3.8/site-packages/torchaudio/_torchaudio.so: undefined symbol: _ZNK5torch8autograd4Node4nameEv
I want to train something with speechbrain, so I have to use py38 with pytorch and torchaudio
struggled here for several days, also turn to compile the torchaudio0.9.0 but still also failed.
anyone have idea to help me out?
Thanks a lot!