asdf-community / asdf-python

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

System python sets "python" to python2 when /usr/bin/python is python3 #157

Open agausmann opened 1 year ago

agausmann commented 1 year ago

OS: Void Linux

Without asdf-python installed: The system handles invocation of python commands. I can type python2 or python3 to invoke the specified version. I can also type python (which I am used to doing) and in this system, that is symlinked to python3.

With asdf-python installed: I still would like to use the system python when I haven't manually selected a different version.
I configured it with the command: asdf global python system
However, now the python command ($HOME/.asdf/shims/python) executes python2 instead.

This may also be an issue in Ubuntu or Debian when the python-is-python3 package is installed, but I haven't tested that yet.