NVIDIA-AI-IOT / jetbot

An educational AI robot based on NVIDIA Jetson Nano.
MIT License
2.97k stars 1.02k forks source link

Update Jetson Nano from Python Version 3.6.9 to 3.9.7 #591

Open dalishalo opened 1 year ago

dalishalo commented 1 year ago

Hello everyone,

I have the Jetson Nano roboter with the default Python version 3.6.9. Now I want to use on the roboter “YOLOv8” for object detection. However, “YOLOv8” demands a Python version >= 3.7.

Based on this following link, I have updated the Python version to 3.9.7.

https://www.vultr.com/docs/install-the-latest-version-of-python-from-source-on-ubuntu-20-04/

I could successfully install Python with the version 3.9.7 and I also could run “YOLOv8”.

However, as I executed the default notebooks from Jetbot, the notebooks could not find the Jetbot libraries.

For example in jetbot/notebooks/road_following/data_collection.ipynb:

I am getting this error while executing this notebook:

ImportError: cannot import name 'Robot' from 'jetbot' (unknown location)

What can be missing or what did I wrong while updating the Python version?

Thank you!

Hoehlenbaer commented 6 months ago

Sorry, I don't fully understand what you did, however it sounds like the quite common confusion with docker containers and host systems. Are you running jetbot's docker containers? In that case you need to update python within the container by modifying the (base or Jupyter) docker file and rebuilding the container (I usually modify only the Jupyter container). The python environment of the container and the host are independent...