

We can have different versions of Python installed inside the virtual environment. When we have a virtual environment, then we can install new packages inside the virtual environment which will not affect the operating system's python modules.

You must be thinking about why we need a virtual environment? So here are a few points in its favor: Instead, you should set up a virtual environment for your development purpose. If you are a Mac user, you should know that Python 2.7.x comes pre-installed in your Macbook, but as that is required by your operating system, so you cannot modify it or update it and I would recommend that you don't use it at all.

This article will help you to set up a Python virtual environment on Mac OS or your Macbook.
