asdf-community / asdf-python

Python plugin for the asdf version manager
https://github.com/asdf-vm/asdf
MIT License
651 stars 56 forks source link

Shims being overridden by Homebrew but not for pyenv #135

Closed dnicolson closed 2 years ago

dnicolson commented 2 years ago

If Python is installed via Homebrew, some of the shims resolve to the Homebrew installation instead of asdf. This does not occur with pyenv.

Installing Python 3.10 and running the following commands:

which python
which python3
which python3-config
which python3.10-config

asdf output:

/Users/dave/.asdf/shims/python
/opt/homebrew/bin/python3
/opt/homebrew/bin/python3-config
/Users/dave/.asdf/shims/python3.10-config

pyenv output:

/Users/dave/.pyenv/shims/python
/Users/dave/.pyenv/shims/python3
/Users/dave/.pyenv/shims/python3-config
/Users/dave/.pyenv/shims/python3.10-config

asdf v0.10.0 pyenv 2.2.5