activate venv on mac code example

Example 1: create a venv

# Create the virtual environment.
python -m venv venv

# Activate the env.
venv\Scripts\activate.bat

Example 2: virtual environment mac

1. 	# Creates the virtual enviroment.
	virtualenv venv
  
2.  # Activates virtual enviroment.
	source venv/bin/activate

Example 3: creating virtual environment python

python3 -m venv tutorial-env
#name : tutorial-env
tutorial-env\Scripts\activate 	#activate env
deactivate #deactivate env

Example 4: activate venv in mac

source venv/bin/activate

Example 5: activate venv in python

(tutorial-env) $ python -m pip install novas
Collecting novas
  Downloading novas-3.1.1.3.tar.gz (136kB)
Installing collected packages: novas
  Running setup.py install for novas
Successfully installed novas-3.1.1.3