E: Package 'python3-wxgtk3.0' has no installation candidate
and
sudo pip install --upgrade pymavlink mavproxy
error: externally-managed-environment
× This environment is externally managed
╰─> To install Python packages system-wide, try apt install
python3-xyz, where xyz is the package you are trying to
install.
If you wish to install a non-Debian-packaged Python package,
create a virtual environment using python3 -m venv path/to/venv.
Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
sure you have python3-full installed.
If you wish to install a non-Debian packaged Python application,
it may be easiest to use pipx install xyz, which will manage a
virtual environment for you. Make sure you have pipx installed.
See /usr/share/doc/python3.13/README.venv for more information.
I’ve been fighting for a bit haven’t made it yet. This is a fresh install of 25.10, and everything is up to date.
the first one I cannot help you with, but the second is that you should read up about python environments. a good tool is pyenv to switch environments. This is better than ‘break system packages’
I have the virtual environment running. I’m still getting the error about python3-wxgtk3.0 missing. And when I try to start MavExplorer or Mavproxy I get the following:
(.venv) allister@macbook:~$ MAVExplorer.py
Traceback (most recent call last):
File "/home/allister/.venv/bin/MAVExplorer.py", line 23, in <module>
from MAVProxy.modules.lib import rline
File "/home/allister/.venv/lib/python3.13/site-packages/MAVProxy/modules/lib/rline.py", line 8, in <module>
from future.builtins import input
ModuleNotFoundError: No module named 'future'
So I ran python3 -m pip install future and that solved that error, but now I get
(.venv) allister@macbook:~$ MAVExplorer.py
Traceback (most recent call last):
File "/home/allister/.venv/bin/MAVExplorer.py", line 24, in <module>
from MAVProxy.modules.lib import wxconsole
File "/home/allister/.venv/lib/python3.13/site-packages/MAVProxy/modules/lib/wxconsole.py", line 11, in <module>
from MAVProxy.modules.lib import win_layout
File "/home/allister/.venv/lib/python3.13/site-packages/MAVProxy/modules/lib/win_layout.py", line 4, in <module>
import os, wx, pickle
ModuleNotFoundError: No module named 'wx'
Naturally I tried the same thing to install wx but I get an error saying no matching distribution found for wx
I’m open to suggestions. Thanks!
Edit: mavproxy.py seems to launch now. It didn’t before so I’ll take the small wins. The problem only seems to be with MavExplorer now.
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for wxPython
Failed to build wxPython
error: failed-wheel-build-for-install
× Failed to build installable wheels for some pyproject.toml based projects
╰─> wxPython
I created a new virtual environment. Followed the instructions in the link you posted (had to edit out –user for the .venv). Install didn’t show any errors.
When I tried to run mavproxy.py I got the “future” error again, so I installed that package. And now I’m back to the same wx error. I’ve tried @Yuri_Rage ‘s suggestion and same error.
I do appreciate you guys taking the time to help out. Thanks!
Glad you sorted it. I was about to suggest simply installing a complete dev environment, as our prereq script takes care of all of that stuff pretty neatly.
The build env setup script save you from figuring out the dependecies yourself. It supports multiple platforms.
if you want a lean setup, you need to get your hands dirty to figure out all the dependecies, which is time consuming (and not really nessecary)