Reputation: 15385
I have the following:
joesan@joesan-InfinityBook-S-14-v5:~/Projects/Private/ml-projects/ml-data-preparation-sandbox$ sudo update-alternatives --config python
update-alternatives: warning: alternative /usr/bin/python2.7 (part of link group python) doesn't exist; removing from list of alternatives
There are 3 choices for the alternative python (providing /usr/bin/python).
Selection Path Priority Status
------------------------------------------------------------
0 /usr/bin/python3.7 4 auto mode
* 1 /usr/bin/python3.7 4 manual mode
2 /usr/bin/python3.8 2 manual mode
3 /usr/bin/python3.9 3 manual mode
Press <enter> to keep the current choice[*], or type selection number:
update-alternatives: warning: forcing reinstallation of alternative /usr/bin/python3.7 because link group python is broken
joesan@joesan-InfinityBook-S-14-v5:~/Projects/Private/ml-projects/ml-data-preparation-sandbox$ python3 --version
Python 3.8.10
How can I set Python3.7 as the default? Should I change the priority? To use Zeppelin 0.10.0 I guess I need Python 3.7.
EDIT: I installed pyenv and I have the following now:
joesan@joesan-InfinityBook-S-14-v5:~$ which python
/home/joesan/.pyenv/shims/python
joesan@joesan-InfinityBook-S-14-v5:~$ python --version
Python 3.7.8
joesan@joesan-InfinityBook-S-14-v5:~$ pyenv versions
system
* 3.7.8 (set by /home/joesan/.pyenv/version)
joesan@joesan-InfinityBook-S-14-v5:~$
Upvotes: 0
Views: 234