How to Use PDM to Manage Python Dependencies without a Virtual Environment

preview_player
Показать описание
I show how to use PDM to manage your Python dependencies and publish python packages all without the need for a virtual environment.

00:00 Introduction
00:42 Comparison to other Package Managers
02:43 Installation
03:24 pdm init
05:23 pdm add
07:09 Grouping Dependencies
09:05 pdm install
09:54 pdm list
10:24 pdm run
11:47 Using .env files
14:50 pdm build
15:07 Using Plugins
16:30 Getting VSCode to use PDM packages
17:52 Outtro

#python

Support me here too:

Рекомендации по теме
Комментарии
Автор

great video! never heard of PDM before today and I can't imagine anymore not using it.

travislaborde
Автор

Excelent video. For everyone installing the latest version of pdm as of today (25/07/22), the init wizard also asks whether or not to create an environment; to achieve the same results as this video, you must answer No.

BigMiau
Автор

Great channel. Keep it up. Super useful for someone new to Python.

inpickle
Автор

Nice video, do you use PDM in production (containers) as well? How?

DavidBerglund
Автор

I had a strange issue installing pdm from brew; it wouldn't recognize its own version. I had 2.8.2 installed but 'pdm -V' kept showing '1.15.x'. Also simple commands like 'pdm list' were broken. Uninstalled from brew and re-installed using pip solved the issue, though I had to add something to $PATH

chanwoopark