asdf-community / asdf-python

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

When I set global python to "system", it doesn't pick the system python. #144

Closed DevotionGeo closed 1 year ago

DevotionGeo commented 1 year ago

On my Mac M1 the system python is 3.9.12 at the path /opt/homebrew/bin/python3. I have installed Python 3.10.6 through asdf.

In the home folder the .tool-versions file looks like,

...
python system

And in my python projects folder the .tool-versions file looks like,

python 3.10.6

Till yesterday when I ran python --version outside of python projects folder it reported 3.9.12 (system's python) and when I ran it inside the python projects folder it reported 3.10.6 (asdf's python). Today it reports the 3.10.6 both inside and outside of the python project's folder, and that's not the expected behavior.

DevotionGeo commented 1 year ago

Uninstalling Python and reinstalling it fixed the issue!