-
Notifications
You must be signed in to change notification settings - Fork 283
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Python 3.12 fails to build on M1 - 'Modules/_ssl.cpython-312-darwin.so': No such file or directory #990
Comments
As reference |
Updated to macOS Sonoma 14.1.1 and Xcode 15.0.1 and get the same error. |
Only one solution worked out of all the recommendations from similar threads: brew unlink pkg-config
rtx install [email protected]
brew link pkg-config Check with this command to see which packages has dependencies to brew uses --installed pkg-config |
Here is the explanation - pyenv/pyenv#2823 (comment)
|
This happened to me too on Ubuntu 22.04 (WSL) due to using Homebrew. The solution was to run: brew unlink pkg-config && \
CFLAGS="-I$(brew --prefix openssl)/include" \
LDFLAGS="-L$(brew --prefix openssl)/lib" \
rtx install python@latest; \
brew link pkg-config This will temporarily unlink |
@jdx Might want to include this in the docs as a workaround for common errors. This may happen often with Python 3.12, idk |
you're welcome to make some modifications to https://github.com/jdx/rtx/blob/main/docs/python.md |
Done in the mise-docs repo 👍 |
thanks! |
Describe the bug
There are similar issues for pyenv - pyenv/pyenv#2805 and pyenv/pyenv#2823
Can't install python 3.12. Full error log
Error snippet
OS: macOS Sonama 14.0
Arch: arm64 (M1)
Shell: zsh
To Reproduce
brew install rtx
eval "$(rtx activate zsh)"
to .zshrcrtx install [email protected]
Expected behavior
Python 3.12 should install without issues.
rtx doctor
outputDependency Info
Xcode info:
The text was updated successfully, but these errors were encountered: