0Pricing
Python Academy · Lesson

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

  1. Why Virtual Environments Matter
  2. Creating and Activating venv
  3. Managing Dependencies with pip
  4. Modern Tools: pipenv and uv
← Back to Python Academy