How Can I Install ARM versions of Python? #2880
-
Related to #2878-- I am able to do python installs now with a call to, e.g., Why am I getting x86 python versions when brew, openssl, and readline are all arm-native and I'm calling pyenv with an 'arch -arm64 prefix? Note that the only way I could get python builds to work was by removing readline, and openssl from Homebrew, thereby forcing the download of them during the install. openssl 3 and readline 8.2 are both arm-native. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 8 replies
-
Need diagnostic information as per the issue template to say anything specific |
Beta Was this translation helpful? Give feedback.
-
pyenv 2.3.35 The new installs are quite terse: I'm happy to provide more informative diagnostics if you can tell me what to grab. :-) P.S. I just installed pyenv-virtualenv which seems to have triggered the install of openssl and other libraries, and of course I'm getting the 'no module named _ssl' error again. |
Beta Was this translation helpful? Give feedback.
-
DescriptionMac OS Sonoma 14.2.1 |
Beta Was this translation helpful? Give feedback.
-
This is my entire .zshrc:
I don't see how either of the x86 aliases would cause the problem is they're not being called. Unless something is getting added somewhere as a result of the upgrade to Sonoma... ?? |
Beta Was this translation helpful? Give feedback.
-
SOLVED! I lost 8 days of my life but learned a few things. Somehow, the x86 version of brew was getting engaged when I'd call the arm version with: arch -arm64 /opt/homebrew/bin/brew. I deleted the x86 Homebrew installation and now the arm python install works flawlessly. I reinstalled x86 Homebrew and and now I can install either arm versions of python or x86 versions of python as I want. It appears that the first secret is to install the arm version of Homebrew first (at least that's what worked for me). The second secret is force delete the openssl and readline formulae from x86 brew library otherwise I can't install anything on the x86 side. I'm happy to offer further details on my setup if anyone wants it.... |
Beta Was this translation helpful? Give feedback.
SOLVED! I lost 8 days of my life but learned a few things. Somehow, the x86 version of brew was getting engaged when I'd call the arm version with: arch -arm64 /opt/homebrew/bin/brew. I deleted the x86 Homebrew installation and now the arm python install works flawlessly. I reinstalled x86 Homebrew and and now I can install either arm versions of python or x86 versions of python as I want. It appears that the first secret is to install the arm version of Homebrew first (at least that's what worked for me). The second secret is force delete the openssl and readline formulae from x86 brew library otherwise I can't install anything on the x86 side.
I'm happy to offer further details on my se…