Virtual environment

Start a virtual environment using virtualenv (see the previous chapter for installation) and use pip to install the modules listed as follows. If you had a folder path of C:\Python3Geospatial, virtualenv will create a virtual environment folder, here called mapboxenv, which can be activated as shown: 

C:\Python3Geospatial>virtualenv mapboxenvUsing base prefix 'c:\\users\\admin\\appdata\\local\\programs\\python\\python36'New python executable in C:\Python3Geospatial\mapboxenv\python.exeInstalling setuptools, pip, wheel...done.C:\Python3Geospatial>mapboxenv\Scripts\activate

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.