Managing Dependencies with pip
Install packages, pin versions, and use requirements.txt.
Introduction
Effective dependency management means pinning versions, separating dev dependencies, and keeping requirements up to date.
pip install Basics
pip install package installs the latest version. pip install package==1.2.3 pins to exact version.
# pip install requests
# pip install requests==2.31.0
# pip install 'requests>=2.25,<3'
print('install demo')All lessons in this course
- Why Virtual Environments Matter
- Creating and Activating venv
- Managing Dependencies with pip
- Modern Tools: pipenv and uv