Answers for "change python version"

47

how to check python version

# To check your Python version in the command line use:
python --version

# To check your Python verson inside a script use:
import sys
print(sys.version)
Posted by: Guest on February-29-2020
3

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
Posted by: Guest on August-07-2020
2

change default python version

sudo update-alternatives --config python
Posted by: Guest on December-20-2020
-1

upgrade python version

conda update python
Posted by: Guest on August-17-2021
0

pip change python version

pip upgrade -pip
Posted by: Guest on March-17-2021
0

how to change python version

sudo update-alternatives --config python3 #Omar
Posted by: Guest on September-11-2021

Python Answers by Framework

Browse Popular Code Answers by Language