我今天嘗試使用 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
- 我確實安裝了 curl-7.82.0-1(并重新安裝),但它不起作用我收到上面的錯誤
- asdf rehim 已運行
- 我現在用谷歌搜索了幾個小時,但我不知道如何定義它是 curl 問題還是 asdf 問題,甚至是其他問題......
- 帶有 LTS 內核的 Artix Runit
謝謝你們;
uj5u.com熱心網友回復:
我卸載了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 的墊片被洗掉
cat: /home/noki/.asdf/shims/curl: No such file or directory
一切正常。
轉載請註明出處,本文鏈接:https://www.uj5u.com/ruanti/448114.html
上一篇:不記名令牌作為curl中的變數
