安装ASDF Python插件时构建失败

发布于 2025-01-22 16:15:44 字数 1712 浏览 2 评论 0原文

我花了几个小时。无法弄清楚为什么我无法安装asdf python插件。

每当我运行asdf install python时,我都会得到此错误:

python-build 3.8.10 /Users/danielrvt/.asdf/installs/python/3.8.10
python-build: use [email protected] from homebrew
python-build: use readline from homebrew
Downloading Python-3.8.10.tar.xz...
-> https://www.python.org/ftp/python/3.8.10/Python-3.8.10.tar.xz
Installing Python-3.8.10...
python-build: use tcl-tk from homebrew
python-build: use readline from homebrew
python-build: use zlib from xcode sdk

BUILD FAILED (OS X 12.3.1 using python-build 2.2.5-13-g6d20b3b1)

Inspect or clean up the working tree at /var/folders/2m/x55h424x6316mw17vv1zky7c0000gn/T/python-build.20220420163159.19178
Results logged to /var/folders/2m/x55h424x6316mw17vv1zky7c0000gn/T/python-build.20220420163159.19178.log

Last 10 log lines:
checking for --with-cxx-main=<compiler>... no
checking for clang++... no
configure:

  By default, distutils will build C++ extension modules with "clang++".
  If this is not intended, then set CXX on the configure command line.
  
checking for the platform triplet based on compiler characteristics... darwin
configure: error: internal configure error for the platform triplet, please file a bug report
make: *** No targets specified and no makefile found.  Stop.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

不确定我在这里做错了什么...

I've spent hours on this. Can't figure out why I'm not able to install the asdf Python plugin.

Whenever I run asdf install python I get this error:

python-build 3.8.10 /Users/danielrvt/.asdf/installs/python/3.8.10
python-build: use [email protected] from homebrew
python-build: use readline from homebrew
Downloading Python-3.8.10.tar.xz...
-> https://www.python.org/ftp/python/3.8.10/Python-3.8.10.tar.xz
Installing Python-3.8.10...
python-build: use tcl-tk from homebrew
python-build: use readline from homebrew
python-build: use zlib from xcode sdk

BUILD FAILED (OS X 12.3.1 using python-build 2.2.5-13-g6d20b3b1)

Inspect or clean up the working tree at /var/folders/2m/x55h424x6316mw17vv1zky7c0000gn/T/python-build.20220420163159.19178
Results logged to /var/folders/2m/x55h424x6316mw17vv1zky7c0000gn/T/python-build.20220420163159.19178.log

Last 10 log lines:
checking for --with-cxx-main=<compiler>... no
checking for clang++... no
configure:

  By default, distutils will build C++ extension modules with "clang++".
  If this is not intended, then set CXX on the configure command line.
  
checking for the platform triplet based on compiler characteristics... darwin
configure: error: internal configure error for the platform triplet, please file a bug report
make: *** No targets specified and no makefile found.  Stop.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Not sure what I'm doing wrong here...

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文