簡體   English   中英

無法在帶有 M1 芯片的 MacOS Big Sur 上安裝 pyenv 3.8.5?

[英]Can't install pyenv 3.8.5 on MacOS Big Sur with M1 chip?

我正在嘗試運行 pyenv install 3.8.5 但不斷收到以下錯誤:

python-build: use openssl@1.1 from homebrew
python-build: use readline from homebrew
Downloading Python-3.8.5.tar.xz...
-> https://www.python.org/ftp/python/3.8.5/Python-3.8.5.tar.xz
Installing Python-3.8.5...
python-build: use readline from homebrew
python-build: use zlib from xcode sdk

BUILD FAILED (OS X 11.5.1 using python-build 20180424)

Inspect or clean up the working tree at /var/folders/61/8hkv2j8j6x7d7ldfq1d201b80000gp/T/python-build.20211009182855.32315
Results logged to /var/folders/61/8hkv2j8j6x7d7ldfq1d201b80000gp/T/python-build.20211009182855.32315.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.

嘗試通過自制軟件安裝。 奇怪的是我可以安裝 pyenv 3.9.6。 我認為這與該版本與新的硅 M1 芯片不兼容有關。 我已經嘗試過在 Mac OS Big Sur 上使用 pyenv 安裝 python 3.6 時出現問題,以及通過 Pyenv 安裝 Python 3.x 時出現問題,但沒有任何效果。 提前致謝!!

https://www.python.org/downloads/release/python-391/

3.9.1 是第一個支持 macOS 11 Big Sur 的 Python 版本。

https://www.python.org/downloads/release/python-3810/

蟒蛇 3.8.10

...但無論如何這里有一堆重要的更新,最大的是 Big Sur 和 Apple Silicon 構建支持。

不幸的是,您無法安裝 3.8.5。

我使用此解決方案解決了在 macbook m1 上使用 pyenv 安裝 3.7.6 的問題。 這也顯示了如何創建一個應該有助於安裝其他 python 版本的補丁文件。 希望這可以幫助。

在 OS 12.3+ 的新 macbook pro M1 上使用 pyenv 安裝 python 3.7.6 時出錯

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM