Nguyễn Thị Thuý
New member
How do I change Python version in Linux?
Answer
Answer
- Check python version on terminal – python –version.
- Get root user privileges. On terminal type – sudo su.
- Write down the root user password.
- Execute this command to switch to python 3.6 – update-alternatives –install /usr/bin/python python /usr/bin/python3 1.
- Check python version – python –version.
- Done.