python virtual environment
python3 -m venv env
python -m virtualenv env #py2
source env/bin/activate
#all this is on same directory
python virtual environment
python3 -m venv env
python -m virtualenv env #py2
source env/bin/activate
#all this is on same directory
create a venv
# Create the virtual environment.
python -m venv venv
# Activate the env.
venv\Scripts\activate.bat
create a virtualenv python
pip install virtualenv
cd projectfolder #go to project folder
virtualenv projectname #create the folder projectname
source projectname/bin/activate
activate virtual environment python
Install venv with this command:
pip install virtual env
Create a directory and type the following command in terminal:
python -m venv virtual <-- "The last word in command is the name of the venv, you can call it whatever you want."
Activate virtual environment:
source virtual/bin/activate
setting p a virtual envioronment
#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
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us