Answers for "create python virtualenv with specific python version"

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
1

uses specific version python venv

# Use python version 3.7.3 for tensorflow
pip install virtualenv 
virtualenv -p PYTHONPATH <path/to/new/virtualenv/>
Posted by: Guest on November-23-2020

Code answers related to "create python virtualenv with specific python version"

Python Answers by Framework

Browse Popular Code Answers by Language