Mahboobe
0
Q:

create a virtual environment python 3

python3 -m venv env
python -m virtualenv env #py2

source env/bin/activate

#all this is on same directory
14
# Create the virtual environment.
python -m venv venv

# Activate the env.
venv\Scripts\activate.bat
4
pip install virtualenv # install first
cd projectfolder # go to project folder
python -m venv ./venv # Create a virtual environment named venv
Activate.ps1 # (powershell) start the file  to start the environment
activate.bat # (cmd) start the file  to start the environment
# if it worked you'll see a (venv) in front of your cursor path
4
python3 -m venv /path/to/new/virtual/environment
6
#Creating a Virtual Environment | Windows 10
#Proceed to the folder were you want to create your environment, Then enter the following:
...\> py -m venv project_name
#To activate the environment, run:
...\> project_name\Scripts\activate.bat
#Then install Django using pip
...\> py -m pip install Django
4
python3 -m pip install --user virtualenv
1
venv\Scripts\activate.bat
1
mypthon\Scripts\activate
0
c:\>python -m venv c:\path\to\myenv
0

New to Communities?

Join the community