A virtual environment is a copy of Python main environment and cannot be altered. code example
Example 1: create virtual environment code
python3 -m venv venv
Example 2: how virtual environment in python works
>>> import sys
>>> sys.prefix
'/System/Library/Frameworks/Python.framework/Versions/3.5'