how to change python version on linux
#Check available versions
ls /usr/bin/python*
#Change the used version 3.5 or 3.7 etc
alias python='/usr/bin/python3.x'
#do this other thing
. ~/.bashrc
#Check version
python --version
how to change python version on linux
#Check available versions
ls /usr/bin/python*
#Change the used version 3.5 or 3.7 etc
alias python='/usr/bin/python3.x'
#do this other thing
. ~/.bashrc
#Check version
python --version
update python debian
# check python version
python3 --version #output: Python 3.7.3
# Open the /etc/apt/sources.list file with the following command:
sudo nano /etc/apt/sources.list
# Add the official testing repository. Append the following line of text to
# the end of the file:
deb http://http.us.debian.org/debian/ testing non-free contrib main
# After editing the file, download the information for all of the packages
# available with the following command:
sudo apt update
#Upgrade Python 3 with the following command:
sudo apt upgrade python3
#Verify that you’ve updated Python by checking the version:
python3 --version #output: Python 3.9.1
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us