Setting up the environment

As usual, we will start by setting up our environment; the first thing we need to do is set up a virtual environment that will allow us to easily install our project dependencies without interfering with Python's global installation.

In the previous chapters, we used virtualenv to create our virtual environment; however, Kenneth Reitz (the creator of the popular package requests) created pipenv. pipenv is for Python what NPM is for Node.js. However, pipenv is used for much more than package management, and it also creates and manages a virtual environment for you. In my opinion, there are a lot of advantages of the old development workflows, but for me, there are two things that stand out: the first is that you ...

Get Python Programming Blueprints 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.