I tried to use ubuntu using GCP. I dropped the python code from github with the familiar VS Code, but I can't use python3 as it is, so make a note.
Since the Python version is displayed at the bottom left of code, clicking it will display the Python version as an option in the command palette (upper search bar). I should be able to select python3 here, but when I type python --version in the terminal, it says that it is the old version of python2.
It seems that you can change the default by typing the following command. sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.6 9
The following is a reference site. https://qastack.jp/unix/410579/change-the-python3-default-version-in-ubuntu
Recommended Posts