Answers for "switch python version"

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
0

use python as python3 zsh

# Go into your .zshrc file. Is there a line that reads:
alias python='python3'
Posted by: Guest on August-04-2020
0

switching versions of python

# Check your python version 
python --version
Python 3.9.0 
# Check the python installation list 
pyenv install --list 
[Whole list available for you, pick yours]
pyenv install 3.9.1
pyenv global 3.9.1 
python --version 
Python 3.9.1
Posted by: Guest on February-01-2021
0

transition from python 2 to 3 terminal

alias python="python3"
Posted by: Guest on August-21-2020

Python Answers by Framework

Browse Popular Code Answers by Language