I tried to reproduce this by using pyenv on Ubuntu 24.04 on a fresh install. I was not able to. Thus, there must be something more to your environment. We’ll need more details about how exactly to reproduce this in order to try to help.
Ok, I am going to try a new VM, throw away the old one and document the steps I did to set this up.
Ok, So I did the above and got to the point of installing wxPython. It failed
Here are my notes
I now remember that this previously happened and I tried to build wxPython using these instructions
Maybe I built it incorrectly
Aha - you are using Linux on ARM64. I didn’t notice that earlier. We don’t have Linux wheels built for Ubuntu on ARM64, so you’re having to build the wheel from scratch. In that case you need to have all the dependencies installed before trying to install wxPython.
See the list here: