英文:
how to solve this python installation error with asdf?
问题
我正在尝试使用 asdf 安装 Python,所以我尝试了一切,但没有成功。
[lucaslinux@lucasPC ~]$ asdf install python latest
python-build 3.11.2 /home/lucaslinux/.asdf/installs/python/3.11.2
正在下载 Python-3.11.2.tar.xz...
-> https://www.python.org/ftp/python/3.11.2/Python-3.11.2.tar.xz
正在安装 Python-3.11.2...
构建失败 (Arch Linux,使用 python-build 2.3.13-1-g86a4423b)
请检查或清理位于 /tmp/python-build.20230215220228.5116 的工作目录
结果记录在 /tmp/python-build.20230215220228.5116.log
最后 10 行日志:
检查 pkg-config... 无
检查 --enable-universalsdk... 无
检查 --with-universal-archs... 无
检查 MACHDEP... "linux"
未找到可接受的 C 编译器于 $PATH
有关详细信息,请参阅 `config.log`
我尝试通过 asdf 安装 Python,进行了搜索但没有找到解决方法。
英文:
I'm trying to install python with asdf, so I've tried everything and it's not working
[lucaslinux@lucasPC ~]$ asdf install python latest
python-build 3.11.2 /home/lucaslinux/.asdf/installs/python/3.11.2
Downloading Python-3.11.2.tar.xz...
-> https://www.python.org/ftp/python/3.11.2/Python-3.11.2.tar.xz
Installing Python-3.11.2...
BUILD FAILED (Arch Linux using python-build 2.3.13-1-g86a4423b)
Inspect or clean up the working tree at /tmp/python-build.20230215220228.5116
Results logged to /tmp/python-build.20230215220228.5116.log
Last 10 log lines:
checking for pkg-config... no
checking for --enable-universalsdk... no
checking for --with-universal-archs... no
checking MACHDEP... "linux"
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/tmp/python-build.20230215220228.5116/Python-3.11.2':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details
I tried to install python through asdf, I searched about it and found nothing
答案1
得分: 1
我能够在Ubuntu 20.04上解决同样的问题,安装了这里所述的系统依赖。
英文:
I was able to solve the very same problem on Ubuntu 20.04 installing the system dependencies as explained here .
答案2
得分: 0
你从使用英特尔CPU的MacOS迁移过来吗?问题可能出在Homebrew上。
解决方法是彻底移除Homebrew(https://stackoverflow.com/questions/65447875/how-to-uninstall-homebrew-using-an-arm-based-mac),然后从头安装它。它应该安装arm64/M1版本。然后安装asdf
,然后你可以为M1安装Python。 — 来源。
英文:
Did you migrate from a MacOS with an Intel CPU? Because the problem could be Homebrew.
> 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 asdf
and you can install Python for M1. — source.
答案3
得分: -1
在你的Arch系统中安装这些软件包,我不知道在Arch中的具体名称,但进行一些谷歌搜索就能找到。
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论