Q:

install virtualenv

pip install virtualenv

activate it by doing this:
cd myproject/Scripts/activate
1
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
pip install virtualenv
cd projectfolder #go to project folder
virtualenv projectname #create the folder projectname 
source projectname/bin/activate
8

# ------- How to use a virtual environment on MAC? -------- #
# Use the command line to:

 1º - Instal Python3 and pip3
  
  
 2º - Create a folder for your virtual environment:
 
  >> cd "path_to_the_place_you_want_to_locate_your_folder"
  
  >> python3 -m venv "name_of_env"
  
  
 3º - Activate this virtual environment:

  >> source "name_of_env"/bin/activate
  
  
 4º - Now you can install new things inside this environment:
  
  >> pip3 install django  # for example

 
2
mypthon\Scripts\activate
0

New to Communities?

Join the community