jetson-inference: ImportError: No module named jetson
Followed Building the Project from Source
Did
$ sudo apt-get install git cmake $ git clone https://github.com/dusty-nv/jetson-inference $ cd jetson-inference $ git submodule update --init
guess i forgot to do this in the first time during the build
$ sudo apt-get install libpython3-dev python3-numpy
$ cd jetson-inference # omit if pwd is already jetson-inference from above $ mkdir build $ cd build $ cmake …/
$ make $ sudo make install
I can’t find jetson.inference and jetson.utils inside /usr/lib/python3.6/dist-packages
This is what i can see inside after running ls /usr/lib/python3.6/dist-packages
graphsurgeon tensorrt uff graphsurgeon-0.3.2.dist-info tensorrt-5.0.6.3.dist-info uff-0.5.5.dist-info
tried to deleting rm -rf jetson-inference reinstall with all the following steps
Yet No jetson.inference and jetson.utils inside /usr/lib/python3.6/dist-packages
What is going wrong? Have i missed any step in between?
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 21 (8 by maintainers)
To fix this problem in Python 3.6 using a virtual environment, I had to copy the following .so files (higlighted in bold) after the sudo ldconfig step to my virtual environment site-packages folder:
cp /usr/lib/python3.6/dist-packages/jetson_inference_python.so /home/.virtualenvs/<virtual_environment_name>/lib/python3.6/site-packages/jetson_inference_python.so
cp /usr/lib/python3.6/dist-packages/jetson_utils_python.so /home/.virtualenvs/<virtual_environment_name>/lib/python3.6/site-packages/jetson_utils_python.so
Same problem. But i haven’t any folder
/jetsonin any/dist-packages. i have under python3.6 a folder withJetson,with uppercase, with a subfolderGPIOFrom your original message, it doesn’t look like you cloned the
pythonbranch. It is still in development, so for now clone it like this:$ git clone -b python https://github.com/dusty-nv/jetson-inference