linux set python 3 as default
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.4 1
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.6 2
update-alternatives: error: no alternatives for python3
1. Check current version:
$ python --version
2. get root permissions:
$ sudo su
3. set python3 as default:
$ update-alternatives --install /usr/bin/python python /usr/bin/python3 1
4. Done. (Check by $ python --version)
Also in C++:
- No module named notebook
- uninstall program from ubuntu
- pyqt install
- ubuntu power saving
- Flexlay Editor
- making password sensitive/hide in terraform
- How to get the latest powershell update
- install matplotlib
- docker compose install ubuntu
- how to customize icons in linux
- powershell commands
- spaceship zsh
- awk or statement
- ubuntu start mongodb
- ubuntu slack install
- mysql execute command from command line
- versão do meu linux
- git stash apply specific file
- install flask dockerfile
- how to ls git branch
- wsl2 access folder from windows
- Got error: 1698: Access denied for user 'root'@'localhost' when trying to connect
- uninstall all pip packages anaconda
- how to set execute permission in linux