0% found this document useful (0 votes)
20 views

DevNet Lab Virtual Environment

Uploaded by

sepi.fathi
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views

DevNet Lab Virtual Environment

Uploaded by

sepi.fathi
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Cisco DevNet Associate Cert Prep 3:

Cisco Platforms and Development


with Eric Chou

Python Virtual Environment and PIP


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.

Python 3 venv module: https://docs.python.org/3/library/venv.html


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

You might also like