Running virtualenv

To create the virtual environment, open a command line and enter the following command structure, virtualenv {environment name}. In this case, the name of the environment is cartoenv:

Inside the folder where virtualenv is created, a series of folders are generated with the code files necessary to support Python. There is also a Lib folder, which contains the site-packages folder that will hold all of the modules installed inside this virtual version of Python:

Get Mastering Geospatial Analysis with Python now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.