When i SSH into the jetson nano image and open a python prompt it and for example, import a library" it says “ModuleNotFoundError: No module named ‘Adafruit_MotorHAT’”
jetbot@nano-4gb-jp45:~$ python3
Python 3.6.9 (default, Jan 26 2021, 15:33:00)
[GCC 8.4.0] on linux
Type “help”, “copyright”, “credits” or “license” for more information.
from Adafruit_MotorHAT import Adafruit_MotorHAT, Adafruit_DCMotor
Traceback (most recent call last):
File “”, line 1, in
ModuleNotFoundError: No module named ‘Adafruit_MotorHAT’
However, when i run the same command in jupyter which is running the same python it imports fine. Why is the ssh python session not importing the libraries?
Here’s the python information from jupyter
Heres the information from the ssh python session :
jetbot@nano-4gb-jp45:/bin$ python3
Python 3.6.9 (default, Jan 26 2021, 15:33:00)
[GCC 8.4.0] on linux
Type “help”, “copyright”, “credits” or “license” for more information.
import sys
print(sys.path)
[‘’, ‘/usr/lib/python36.zip’, ‘/usr/lib/python3.6’, ‘/usr/lib/python3.6/lib-dynload’, ‘/usr/local/lib/python3.6/dist-packages’, ‘/usr/lib/python3/dist-packages’, ‘/usr/lib/python3.6/dist-packages’]