In Chapter 1, Developing RESTful APIs and Microservices with Flask 1.0.2, we learned that, throughout this book, we are going to work with the lightweight virtual environments introduced and improved in Python 3.4. Now we will follow many steps to create a new lightweight virtual environment to work with Flask and Flask-RESTful.
It is highly recommended that you read the section named Working with lightweight virtual environments in Chapter 1, Developing RESTful APIs and Microservices with Flask 1.0.2, if you don't have experience with lightweight virtual environments in modern Python. The chapter includes all the detailed explanations about the effects of the steps we are going to follow.
The following commands assume that you have Python 3.7.1 or greater installed on Linux, macOS, or Windows.
First, we have...