I want to update Python 3.7.12 to 3.10 in google cloud. I successfuly downloaded and installed python 3.10. Using sudo update-alternatives I want to activate Python 3.10. But I get update-alternatives: –install needs instead. What is the correct declaration of sudo update-alternatives in this case? These are the locations of Python 3.7 and 3.10 :
(base) jupyter@kamil-a-tokyo:~$ which python3
/opt/conda/bin/python3
(base) jupyter@kamil-a-tokyo:~$ python3 --version
Python 3.7.12
(base) jupyter@kamil-a-tokyo:~$ python3.10 --version
Python 3.10.0
(base) jupyter@kamil-a-tokyo:~$ which python3.10
/usr/local/bin/python3.10
New contributor
aware is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.