Chapter 1: Python Development Environment Setup
Before we can get started on our FastAPI journey, we need to configure a clean and efficient Python environment. This chapter will show you the best practices and conventions that 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 different dependencies.
In this chapter, we're going to 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