-
-
Notifications
You must be signed in to change notification settings - Fork 58
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
Error install Python 3.10.0 on MacOS 12.0.1 on Apple M1 Pro Max #118
Comments
Why can't asdf install a binary python package for the M1 family of processors instead of insisting on compiling from the source it pitifully fails? |
facing the same error, any intermediate fix/patch? |
The problem was with Homebrew for Intel which I inherited after the migration from the older laptop. The solution is to completely remove Homebrew (https://stackoverflow.com/questions/65447875/how-to-uninstall-homebrew-using-an-arm-based-mac) and install it from scratch. It should install arm64/M1 version. Then install |
Thanks for helping @hipertracker. My issue was due to ARCHFLAGS env set to " |
Yes this is a good question, does it have to build from source? I actually have the reverse problem, it is failing on Intel MacBook with no x86_64 symbols now found. But trying the uninstall now. |
For Intel MBP you can force flags with the command |
I get a different error:
I also tried with |
Same issue. Python 3.9 works but not 3.8. |
Thanks for helping @hipertracker.....this fixed the issue for me (resetting the arch flag)....please remember to close all shells if you're editing your startup scripts (.zshrc, etc). |
I wasn't able to fix this issue, therefore I opted with having python 3.10.5 on my local mac and will use venv with asdf for other versions of python i need. Will continue to look for a workaround |
Hi @glaucocustodio Could you manage to make it work? I am facing the same issue |
Nothing in this thread worked for me, but I found an alternative solution. Turns out I already had version 3.9.6 of python installed, which I believe got installed with the XCode Command Line Tools, which I in turn had previously installed when setting up my development environment. The command Step by step:
You've now got your "system Python"—the one installed by XCode Tools, which I recommend you leave alone—and the Python you'll actually be using, the versions of which you'll manage through asdf. You can do |
This worked for me, thanks! |
I ran into the same issue today when trying to install Python 3.9.0. None of the replies above worked for me, so I did some searching in the asdf-python repo, reading the section "Use". Two links might be useful.
Then I tried |
python-build: use [email protected] from homebrew
python-build: use readline from homebrew
Downloading Python-3.10.0.tar.xz...
-> https://www.python.org/ftp/python/3.10.0/Python-3.10.0.tar.xz
Installing Python-3.10.0...
patching file aclocal.m4
patching file configure
Hunk #5 succeeded at 10537 (offset -15 lines).
python-build: use readline from homebrew
python-build: use zlib from xcode sdk
BUILD FAILED (OS X 12.0.1 using python-build 2.2.0-16-ge342d847)
Inspect or clean up the working tree at /var/folders/fs/4lhkvxxs1lx43fwy38dgftq40000gn/T/python-build.20211115110731.18380
Results logged to /var/folders/fs/4lhkvxxs1lx43fwy38dgftq40000gn/T/python-build.20211115110731.18380.log
Last 10 log lines:
File "/private/var/folders/fs/4lhkvxxs1lx43fwy38dgftq40000gn/T/python-build.20211115110731.18380/Python-3.10.0/Lib/runpy.py", line 146, in _get_module_details
return _get_module_details(pkg_main_name, error)
File "/private/var/folders/fs/4lhkvxxs1lx43fwy38dgftq40000gn/T/python-build.20211115110731.18380/Python-3.10.0/Lib/runpy.py", line 110, in _get_module_details
import(pkg_name)
File "/private/var/folders/fs/4lhkvxxs1lx43fwy38dgftq40000gn/T/python-build.20211115110731.18380/Python-3.10.0/Lib/ensurepip/init.py", line 4, in
import subprocess
File "/private/var/folders/fs/4lhkvxxs1lx43fwy38dgftq40000gn/T/python-build.20211115110731.18380/Python-3.10.0/Lib/subprocess.py", line 74, in
import _posixsubprocess
ModuleNotFoundError: No module named '_posixsubprocess'
make: *** [install] Error 1
The text was updated successfully, but these errors were encountered: