Python virtual environment provides a lightweight virtual environment with their own site directories and Python interpreter separated from the system Python environment. It is highly recommended that you use Python virtual environment for your labs.
Installing packages using pip and virtual environments: https://packaging.python.org/guides/installing-using-pip-and-virtual-environments/
Note. Python 2 is end of support as of January 1st, 2020 (https://www.python.org/doc/sunset-python-2/). But
if you are running Python 2, you can use virtualenv: https://packaging.python.org/key_projects/#virtualenv
– Here is an example of
$ python3 -m venv <name of virtual env>
$ source <name of virtual env>/bin/activate
Cisco DevNet Associate Cert Prep 3: Cisco Platforms and Development with Eric Chou 1 of 1