On the new MacOS version (11.0 aka Big Sur), the command line becomes: Hopefully, by blogging about it you'll find this from Googling and I'll remember the next time I need it because it did eat 2 hours of precious evening coding time. So, the magical line was this: SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/atform/Developer/SDKs/MacOSX10.15.sdk \
MAC OS PYTHON VERSION INSTALL
Until I saw this comment on an open pyenv issue: "Unable to install any Python version on MacOS"Īll I had to do was replace the 10.14 for 10.15 and now it finally worked here on Catalina 10.15. xcode was up to date and I had all the related brew packages upgraded. I read through the Troubleshooting FAQ and the "Common build problems" documentation. Modules/posixmodule.c:6018:11: warning: this function declaration is not a prototype Pid = forkpty(&master_fd, NULL, NULL, NULL) Modules/posixmodule.c:6018:11: error: implicit declaration of function 'forkpty' is invalid in C99 If (openpty(&master_fd, &slave_fd, NULL, NULL, NULL) != 0) Modules/posixmodule.c:5924:9: warning: this function declaration is not a prototype Results logged to /var/folders/mw/0ddksqyn4x18lbwftnc5dg0w0000gn/T/
But every thing I tried failed with an error similar to this: python-build: use openssl from homebrewīUILD FAILED (OS X 10.15.x using python-build 20XXXXXX) It seems like totally the right tool for having different versions of Python available on macOS that don't suddenly break when you run brew upgrade periodically. I'm still working on getting pyenv in my bloodstream. PYTHON_CONFIGURE_OPTS="-enable-framework" \ Here's what I needed to do in 2022 to get this to work: SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/atform/Developer/SDKs/MacOSX12.1.sdk \
MAC OS PYTHON VERSION UPDATE
UPDATE Mar 7, 2022: For OSX 12.2 Monterey