I am getting this error with asdf when running 'python' in my terminal on mac

351 Views Asked by At

I go to my terminal on my mac and run the 'python' command but receive the error:

/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

Why would I be missing this file or directory?

1

There are 1 best solutions below

1
On

Here is a solution that could be a solution for that problem:

To fix simply edit /Users/me/.asdf/shims/elixir and change the /usr/local/libexec/private/asdf-exec to /usr/local/Cellar/asdf/0.6.2/libexec/private/asdf-exec. I think it is caused because I had an old asdf 0.6.0 which was missing the .zshrc activation (source /usr/local/opt/asdf/asdf.sh).

Look here: https://github.com/asdf-vm/asdf/issues/418