see comment above for the command and other details.
Post
Replies
Boosts
Views
Activity
Same error when using latest Apple MacBook Pro M1 silicon with Monterey. Here is the command:
arch -x86_64 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Ref: During installing of Pyenchant on Mac, I get the error "cannot find enchant library" so I used this command after removing default home-brew setup in /opt/homebrew and installing it in /usr area as suggested here:
https://pyenchant.github.io/pyenchant/install.html#installing-the-enchant-c-library
It worked on Apple silicon Big Sur M1 silicon earlier - I could import enchant library and spell check.
An update on realpython.com/intro-to-pyenv/ I had issues with pyenchant not being able to find enchant C library when I used pyenv installer as suggested in this link. However, when I used brew install for all packages including pyenv, pyenv-virtualenv - I was able to have multiple python virtual environments on 2.7.18, 3.9.9 on latest Monterey using M1 silicon 14" pro.
For default Python 3.8.9, I am seeing build errors for pyenv install 3.8.9 command:
pyenv install 3.8.9
python-build: use openssl@1.1 from homebrew
python-build: use readline from homebrew
Downloading Python-3.8.9.tar.xz...
-> https://www.python.org/ftp/python/3.8.9/Python-3.8.9.tar.xz
Installing Python-3.8.9...
python-build: use readline from homebrew
python-build: use zlib from xcode sdk
BUILD FAILED (OS X 12.0.1 using python-build 20180424)
Inspect or clean up the working tree at /var/folders/3f/l881d_r17qj_2q0kt5_6ll9h0000gn/T/python-build.20211123193623.70196
Results logged to /var/folders/3f/l881d_r17qj_2q0kt5_6ll9h0000gn/T/python-build.20211123193623.70196.log
Last 10 log lines:
checking size of _Bool... 1
checking size of off_t... 8
checking whether to enable large file support... no
checking size of time_t... 8
checking for pthread_t... yes
checking size of pthread_t... 8
checking size of pthread_key_t... 8
checking whether pthread_key_t is compatible with int... no
configure: error: Unexpected output of 'arch' on OSX
make: *** No targets specified and no makefile found. Stop.
In another forum I learnt that 3.9.1 is the python supported for Monterey. Not the ones prior to it.