我正在尝试将python3.10.0安装在我的苹果M1硅上。
安装通过asdf管理器。3.7.9和3.9.4正常工作,但安装3.10.0会导致以下错误:
Last 10 log lines:
"_libintl_textdomain", referenced from:
__locale_textdomain in libpython3.10.a(_localemodule.o)
__locale_textdomain in libpython3.10.a(_localemodule.o)
ld: symbol(s) not found for architecture x86_64
ld: symbol(s) not found for architecture x86_64
clang: clangerror: linker command failed with exit code 1 (use -v to see invocation)
: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [Programs/_testembed] Error 1
make: *** Waiting for unfinished jobs....
make: *** [python.exe] Error 1cmake版本3.22.0
Apple版本13.0.0 (clang-1300.0.29.3)目标: x86_64-apple-darwin21.1.0线程模型: posix InstalledDir: /Library/Developer/CommandLineTools/usr/bin
我试过的是:
出口ARCHFLAGS="-arch arm64“
以及所有的建议
Can't install Python 3.10.0 with pyenv on MacOS
提前谢谢你,真让我发疯-)
发布于 2022-03-10 21:01:02
brew install gettext然后
export LDFLAGS="-L/opt/homebrew/lib"; export CPPFLAGS="-I/opt/homebrew/include"pyenv install 3.10.0对我起作用了。我在这里找到的https://github.com/pyenv/pyenv/issues/1877#issuecomment-962514298
发布于 2022-12-03 12:06:11
这对我起了作用:
arch -x86_64 pyenv install 3.10.4https://stackoverflow.com/questions/70152525
复制相似问题