Problem setting up Linux development environment

Hello
I am unable to set up the development environment, when I try to run

python setup.py build install --user

I get the following error:

 Traceback (most recent call last):
   File "setup.py", line 1, in <module>
     from setuptools import setup
 ImportError: No module named setuptools

From googling around i stumbled upon this issue on github which I think might be of relevance, but I am not sure as i am brand new to the setup and workflow of MAVProxy. Is this the problem and how do i fix this?

Edit: I am using an NVIDIA Jetson Orin Nano with Ubuntu 20.04.6 LTS

As per instructions, please start with normal install : Download and Installation — MAVProxy documentation then remove the pip installed version to install your one

I belive i have already done this.

  • I downloaded MAVProxy and played around with it

  • ran pip uninstall MAVProxy

  • cloned the new repository

  • made a new module

  • and then tried to run python setup.py build install --user

just install setuptools then

Right, it should already be installed. I tried to install it with pip again and get this message:

Requirement already satisfied: setuptools in /usr/local/lib/python3.8/dist-packages (72.1.0)

Maybe i could get someone to check whether setuptools is located in the right directory?

I have also tried to add the location of setuptools to PYTHONPATH (even though i assume it would have been mentioned in the guide if this was neccesary)

Suggestion: Create a VM just for Ardupilot, with Ubuntu 22.04 LTS.