If you have upgraded to MacOs Sequoia like I did and found out that pyenv and other Python stuff doesn’t not work ( including compiling ) this is for you.
I spent way too much time trying to get Sequoia to install Python properly with pyenv and compiling and installing a binary ( when available ). So I took the logical (?) approach and installed UTM, installed an M1 vm and compiled from scratch to get the binaries and then installed those on my Sequoia Mac and its working.
Here are my steps. Feel free to tell me I am wrong about something and I could have done better.