Python Development Environment Setup
Before we can go through our FastAPI journey, we need to configure a Python environment following the best practices and conventions Python developers use daily to run their projects. By the end of this chapter, you’ll be able to run Python projects and install third-party dependencies in a contained environment that won’t raise conflicts if you happen to work on another project that uses different versions of the Python language or dependencies.
In this chapter, we will cover the following main topics:
- Installing a Python distribution using
pyenv
- Creating a Python virtual environment
- Installing Python packages with
pip
- Installing the HTTPie command-line utility