Vigyata.AI
Is this your channel?

Python Package Management With PDM

597 views· 13 likes· 19:18· May 23, 2025

🛍️ Products Mentioned (17)

In this video we'll be looking at the PDM package manager for Python. It is similar to NPM for JavaScript, containing the project dependencies, setting up templates, adding run scripts etc. PDM is a great alternative if you find PIP to be lacking. PDM: https://pdm-project.org/en/latest/ Support me by becoming a member: https://www.youtube.com/channel/UCrIsEy0a57Fz3MdEOvhWbkw/join Check out the Python tutorials playlist: https://www.youtube.com/playlist?list=PLYBJzqz8zpWYHDS2qS-UstfWdQRLrbQ9L Get 15% off on your first order from Silkworm Shop https://silkwormshop.co.za/ by using my code: REFCKBQAESCC9 Subscribe for more videos! YouTube: https://www.youtube.com/stevesteacher?sub_confirmation=1 Odysee: https://odysee.com/$/invite/@stevesteacher:0 For more programming videos, feel free to subscribe to my 2nd channel: https://www.youtube.com/@programmervibe Timestamps: 00:00 - Intro 01:37 - Project Setup 03:20 - Project Templates 04:59 - Installing Dependencies 06:56 - Removing Dependencies 07:09 - Installing Deps From Source 08:17 - Dependency Groups 10:26 - Updating Outdated Packages 13:05 - Listing Dependencies 13:44 - Removing Deps From Groups 14:09 - Managing Python with PDM 16:11 - Running Files and Scripts 17:42 - Final Overview Crash Courses: https://www.youtube.com/playlist?list=PLYBJzqz8zpWbmPw2E0ywUEuhw6FEwVR0U C++ Programming Tutorials: https://youtu.be/2bSuuzMwda8 Lua Programming Tutorials: https://youtu.be/1srFmjt1Ib0 Love2D Game Dev Tutorials: https://youtube.com/playlist?list=PLYBJzqz8zpWYip5ZkTMQiOkqya9Iiefm9 Nim Programming Tutorials: https://youtube.com/playlist?list=PLYBJzqz8zpWaiGbFcSdlh08zlpe8Tl_Gh&si=_ChTUx7KXew-RnI1 Become a Web Developer: https://youtube.com/playlist?list=PLYBJzqz8zpWbsmFurxBg2Pm-mlBmJdXbh Python Programming Tutorials: https://youtube.com/playlist?list=PLYBJzqz8zpWYHDS2qS-UstfWdQRLrbQ9L&si=s9MObuX3zUHF_PAw PHP Tutorials: https://youtube.com/playlist?list=PLYBJzqz8zpWabvZludVukPwZfQe9IdX_f&si=6OWdV8ZOYMkcuLl8 HTML Tutorials: https://youtu.be/lobFuLWhp0M JavaScript Tutorials: https://youtube.com/playlist?list=PLYBJzqz8zpWbEec9oCuwTfNyebLQjuM5c&si=QAsYwRdJJBtqzrKV Bootstrap Tutorials: https://youtu.be/TzrxCl9vMGY?si=TqDig3-yZf6TQghW CSS Tutorials: https://youtu.be/nNXhyBtdjNQ?si=5Ssqo4U5HaMEJtVS Delphi Programming Tutorials: https://youtu.be/BqmJpFbRY2U Pascal Programming Tutorials: https://youtu.be/6jRVhT_JotY?si=NS9hDedlVQnQX3MV Linux Tutorials/Videos: https://youtube.com/playlist?list=PLYBJzqz8zpWYnUtUeVahkfIeYNKkLRMfZ How-to videos: https://www.youtube.com/playlist?list=PLYBJzqz8zpWbp2DxyVGUCqxSZaCwDvU3C Godot Game Dev Tutorials: https://youtube.com/playlist?list=PLYBJzqz8zpWZT3jepx1vY1nwhaC-T8wB2 TKinter Tutorials: https://youtube.com/playlist?list=PLYBJzqz8zpWZwVkeu2E5Hjw5ImK7SzMe3 Web Scraping/Beautiful Soup Tutorials: https://youtube.com/playlist?list=PLYBJzqz8zpWYfL1pYs4FG8Ed0Cf3sookG MySQL Tutorials: https://youtube.com/playlist?list=PLYBJzqz8zpWaBcVuneV9g4zbKsmMCo-rR Japanese Lessons: https://www.youtube.com/playlist?list=PLYBJzqz8zpWYy-iJ0xckeOjCCE2roN9Ww You can contact me on: Email: StevesTeacherYT@gmail.com Discord: https://discord.gg/NGtD9s6 Hey there!!! Wanna help support the channel :D? Ko-Fi: https://ko-fi.com/stevesteacher Patreon: https://www.patreon.com/Stevesteacher Liberapay: https://liberapay.com/stevesteacher/ PayPal: https://www.paypal.com/donate/?hosted_button_id=P9V2M4Q6WYHR8 YouTube Member: https://www.youtube.com/channel/UCrIsEy0a57Fz3MdEOvhWbkw/join Any suggestions? Leave it in the comment section or contact me somewhere else! Odysee Links: Python Programming Tutorials: https://odysee.com/@stevesteacher:0/Python-Tutorials:5?r=7wEp27kZSg8dDKtQWMJam6CbMAizo9Vt C++ Programming Tutorials: https://odysee.com/@stevesteacher:0/Cpp-Tutorials:d?r=7wEp27kZSg8dDKtQWMJam6CbMAizo9Vt HTML Tutorials: https://odysee.com/@stevesteacher:0/HTML-Tutorials:9?r=7wEp27kZSg8dDKtQWMJam6CbMAizo9Vt Tkinter Tutorials: https://odysee.com/@stevesteacher:0/Tkinter-Tutorials:d?r=7wEp27kZSg8dDKtQWMJam6CbMAizo9Vt Linux Tutorials: https://odysee.com/@stevesteacher:0/Linux-Terminal-Tutorials:7?r=7wEp27kZSg8dDKtQWMJam6CbMAizo9Vt Lua Tutorials: https://odysee.com/@stevesteacher:0/Lua-Tutorials:0?r=7wEp27kZSg8dDKtQWMJam6CbMAizo9Vt Love2D Game Dev Tutorials: https://odysee.com/@stevesteacher:0/Love2D:f Delphi Tutorials: https://odysee.com/@stevesteacher:0/Delphi-Tutorials:4?r=7wEp27kZSg8dDKtQWMJam6CbMAizo9Vt MySQL Tutorials: https://odysee.com/@stevesteacher:0/MySQL-Tutorials:c?r=7wEp27kZSg8dDKtQWMJam6CbMAizo9Vt Thank you for watching! #stevesteacher #python #pdm

About This Video

In this video I take you through Python package management with PDM, and why I think it’s a really solid alternative if you’ve been feeling that plain old pip is a bit… lacking. PDM feels closer to the JavaScript world (think NPM-style workflow): you get a proper project setup, dependency tracking in a single place, templates to bootstrap new projects, and a cleaner way to run scripts without juggling a bunch of ad-hoc commands. I start by setting up a project, then I show how templates work so you can get going quickly without reinventing the wheel. From there we get into the practical day-to-day stuff: installing dependencies, removing them, and even pulling dependencies from source. I also cover dependency groups (so you can separate dev tools from runtime requirements), checking and updating outdated packages, and listing what’s installed so you can actually see what’s going on in your environment. Toward the end I look at managing Python versions with PDM and how I run files and scripts through it. The big takeaway is that PDM gives you a more structured, repeatable workflow for Python projects—especially if you’re building more than quick one-off scripts and you want your tooling to stay out of your way.

Frequently Asked Questions

🎬 More from Steve's teacher