错误“没有为命令curl安装预设版本”,但它已安装

发布于 2025-01-13 02:55:42 字数 1087 浏览 2 评论 0原文

我今天尝试使用 asdf,但有些东西坏了。

当我尝试安装某些版本的python时,我得到:

noki-artix:[noki]:~$ asdf install python 3.8.10
python-build 3.8.10 /home/noki/.asdf/installs/python/3.8.10
Downloading Python-3.8.10.tar.gz...
-> https://www.python.org/ftp/python/3.8.10/Python-3.8.10.tgz
error: failed to download Python-3.8.10.tar.gz

BUILD FAILED (Artix rolling using python-build 2.2.4-1-10-g0d949796)

Results logged to /tmp/python-build.20220310175911.6108.log

Last 10 log lines:
/tmp/python-build.20220310175911.6108 ~
No preset version installed for command curl
Please install a version by running one of the following:

asdf install python 3.10.2

or add one of the following versions in your config file at 
python anaconda3-5.3.1

curl的哪个是:

noki-artix:[noki]:~$ which curl
/home/noki/.asdf/shims/curl
  1. 我确实安装了curl-7.82.0-1(并重新安装) ,但它不起作用我收到上面的错误
  2. asdf reshim was run
  3. 我现在用Google搜索了几个小时,但我不知道如何定义它是curl问题还是asdf问题,甚至是其他问题......
  4. 带 LTS 的 Artix Runit内核

谢谢大家;

I tried to use asdf today and something broke.

When I try to install some version of python I get this:

noki-artix:[noki]:~$ asdf install python 3.8.10
python-build 3.8.10 /home/noki/.asdf/installs/python/3.8.10
Downloading Python-3.8.10.tar.gz...
-> https://www.python.org/ftp/python/3.8.10/Python-3.8.10.tgz
error: failed to download Python-3.8.10.tar.gz

BUILD FAILED (Artix rolling using python-build 2.2.4-1-10-g0d949796)

Results logged to /tmp/python-build.20220310175911.6108.log

Last 10 log lines:
/tmp/python-build.20220310175911.6108 ~
No preset version installed for command curl
Please install a version by running one of the following:

asdf install python 3.10.2

or add one of the following versions in your config file at 
python anaconda3-5.3.1

The which for curl is:

noki-artix:[noki]:~$ which curl
/home/noki/.asdf/shims/curl
  1. I do have curl-7.82.0-1 installed (and re-installed), but it's not working I get the error above
  2. asdf reshim was run
  3. I did Google for a couple of hours now, but I don't know how to define if it's a curl problem or an asdf problem, or even something else...
  4. Artix Runit with LTS kernel

Thank you all;

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

注定孤独终老 2025-01-20 02:55:42

我卸载了 anaconda,我的问题就消失了。

asdf uninstall python anaconda3-5.3.1

我之所以得出这个结论,是因为

#!/usr/bin/env bash
# asdf-plugin: python anaconda3-5.3.1
exec /home/noki/.asdf/bin/asdf exec "curl" "$@"

卸载 anaconda 后的 cat /home/noki/.asdf/shims/curl ,curl 的垫片被删除了

cat: /home/noki/.asdf/shims/curl: No such file or directory

,并且一切正常。

I uninstall anaconda and my problem went away.

asdf uninstall python anaconda3-5.3.1

I arrived at that because of the cat /home/noki/.asdf/shims/curl

#!/usr/bin/env bash
# asdf-plugin: python anaconda3-5.3.1
exec /home/noki/.asdf/bin/asdf exec "curl" "$@"

after uninstalling anaconda the shims for curl was removed

cat: /home/noki/.asdf/shims/curl: No such file or directory

And all works well.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文