Python 3.6.9 (default, Nov 7 2019, 10:44:02)
[GCC 8.3.0] on linux
Type “help”, “copyright”, “credits” or “license” for more information.
import torch
Traceback (most recent call last):
File “”, line 1, in
File “/home/esal/.local/lib/python3.6/site-packages/torch/init.py”, line 81, in
from torch._C import *
ImportError: libnvToolsExt.so.1: cannot open shared object file: No such file or directory
Hi lee2h, which version of JetPack are you using? Those PyTorch wheels should be installed on JetPack 4.2 or newer.
ImportError: libnvToolsExt.so.1: cannot open shared object file: No such file or directory
libnvToolsExt.so should be installed by CUDA toolkit under /usr/local/cuda/lib64 - so either the SDK Manager did not install CUDA toolkit to your TX2, or you should add these lines to the end of your ~/.bashrc file:
I ran into the same issue after following the same proccess, then realized these libraries are not included in the nvcr.io/nvidia/l4t-base:r32.3.1 image.
What is the recommended way to include these objects into an image?
Hi willcbaker, I believe those libraries/packages should be pulled or mapped from your Jetson root. But if you try the deepstream-l4t container, does it work then?
root@6d1b568bfc54:/home/detector# python3
Python 3.6.9 (default, Jul 17 2020, 12:50:27)
[GCC 8.4.0] on linux
Type “help”, “copyright”, “credits” or “license” for more information.
import torch
Traceback (most recent call last):
File “”, line 1, in
File “/usr/local/lib/python3.6/dist-packages/torch/init.py”, line 81, in
from torch._C import *
ImportError: libnvToolsExt.so.1: cannot open shared object file: No such file or directory
I˙ve tried to install the pytorch, but the error is the same. All the others libraries are working well (TensorRT, NumPy etc), but the pytorch isnt.
@dusty_nv, I’ve solve the problem. I saw that the problem was between the Docker Image and the host. Maybe these process could be useful for you, @alexandremg0jh, as well.
b) Add the key “default-runtime”: “nvidia” into the /etc/docker/daemon.json file and restart the docker service;
c) Run the command ```
sudo docker run -it nvcr.io/nvidia/l4t-pytorch:r32.4.2-pth1.5-py3 /bin/bash
d) Run python3 command;
e) Import the library (or libraries).
Thats it.