Answers for "how to specify the version of python to be installed in virtualenv"

2

creating venv python3

# CREATE FOLDER FOR A PROJECT
mkdir project_folder
cd project_folder

# CREATE VIRTUAL ENVIRONMENT
python3.7 -m venv myvenv 
# or alternativelly
virtualenv myvenv --python=python3.7

# ACTIVATE VIRTUAL ENVIRONMENT
source myvenv/bin/activate
Posted by: Guest on August-21-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 "how to specify the version of python to be installed in virtualenv"

Python Answers by Framework

Browse Popular Code Answers by Language