Managing Dependencies With Python Poetry (Overview)
When your Python project relies on external packages, you need to make sure you’re using the right version of each package. After an update, a package might not work as it did before. A dependency manager like Python Poetry helps you specify, install, and resolve external packages in your projects. This way, you can be sure that you always work with the correct dependency version on every machine.
In this video course, you’ll learn how to:
- Create a new project using Poetry
- Add Poetry to an existing project
- Configure your project through
pyproject.toml
- Pin your project’s dependency versions
- Install dependencies from a
poetry.lock
file - Run basic Poetry commands using the Poetry CLI
00:00 Welcome to this Real Python course: Dependency Management with Python Poetry. My name’s Emmanuel, and I’m excited to guide you through this journey of understanding and even mastering dependency management with Poetry.
00:13 If you have faced challenges with managing dependencies in your Python projects, like version conflicts or tricky package installations, you are in the right place.
00:21 You’ll discover how Poetry can greatly enhance the dependency management process. After completing this course, you’ll learn how to: create new Python projects and manage virtual environments using Poetry,
00:34
configure your project with the pyproject.toml
file,
00:38
pin your project’s dependency versions, install and manage dependencies using the poetry.lock
file, run basic Poetry commands using the Poetry command-line interface, and add Poetry to an existing project.
00:55 In the next lesson, you’ll start with understanding what dependency management is, how Poetry can help, and then move on to setting up and installing Poetry on your machine.
Become a Member to join the conversation.