错误“未安装命令curl的预设版本”,但已安装

lh80um4z  于 2023-03-12  发布在  其他
关注(0)|答案(1)|浏览(139)

我今天试着用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

旋度为:

noki-artix:[noki]:~$ which curl
/home/noki/.asdf/shims/curl

1.我确实安装了curl-7.82.0-1(并重新安装),但它不工作,我得到了上面的错误

  1. asdf恢复运行
    1.我在谷歌上搜索了几个小时,但我不知道如何定义它是 curl 问题还是asdf问题,甚至是其他问题...
    1.带有LTS内核的阿蒂克斯Runit
    谢谢大家;
idv4meu8

idv4meu81#

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

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 的垫片

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

而且一切都很好。

相关问题