在 mac 上的终端中运行“python”时,我遇到了 asdf 错误

问题描述 投票:0回答:1

我转到 Mac 上的终端并运行“python”命令,但收到错误:

/Users/mattlaszcz/.asdf/shims/python: line 3: 
/opt/homebrew/Cellar/asdf/0.11.0/libexec/bin/asdf: No such file or directory
/Users/mattlaszcz/.asdf/shims/python: line 3: exec: 
/opt/homebrew/Cellar/asdf/0.11.0/libexec/bin/asdf: cannot execute: No such file or directory

为什么我会丢失这个文件或目录?

python macos homebrew asdf
1个回答
0
投票

这是一个可以解决该问题的解决方案:

要修复,只需编辑 /Users/me/.asdf/shims/elixir 并将 /usr/local/libexec/private/asdf-exec 更改为 /usr/local/Cellar/asdf/0.6.2/libexec/private/asdf -执行。 我认为这是因为我有一个旧的 asdf 0.6.0,它缺少 .zshrc 激活(源 /usr/local/opt/asdf/asdf.sh)。

看这里:https://github.com/asdf-vm/asdf/issues/418

© www.soinside.com 2019 - 2024. All rights reserved.