Answers for "change python version in virtualenv linux"

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
1

virtualenv specify python version

virtualenv --python=/usr/bin/python2.6 <path/to/new/virtualenv/>
Posted by: Guest on September-06-2020

Code answers related to "change python version in virtualenv linux"

Python Answers by Framework

Browse Popular Code Answers by Language