错误"No preset version installed for command curl",但已安装

Error "No preset version installed for command curl", but it's installed

我今天尝试使用 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 是 运行
  3. 我已经 Google 几个小时了,但我不知道如何定义它是 curl 问题还是 asdf 问题,甚至是其他问题...
  4. 带有 LTS 内核的 Artix Runit

谢谢大家;

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

asdf uninstall python anaconda3-5.3.1

我到达那是因为 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" "$@"

卸载 anaconda 后,curl 的 shim 被移除

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

一切正常。