From cb435a84e7a2aaeb42bd6b3f5adb602900875a6e Mon Sep 17 00:00:00 2001 From: David Delassus Date: Sun, 6 Apr 2025 15:36:44 +0200 Subject: [PATCH] Document installation step with pdm PDM does not have pip in the virtualenv by default. The `tailwind init` command will try to install `cookiecutter` automatically. Let's mention that explicitly in the installation steps. --- docs/installation.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/installation.md b/docs/installation.md index c140d4d..c802917 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -37,6 +37,15 @@ python manage.py tailwind init ``` + If you are using [pdm](https://pdm-project.org/), you might need to ensure `pip` is installed in your virtualenv: + + ```bash + pdm run python -m ensurepip + ``` + + See [pdm's documentation](https://pdm-project.org/en/latest/usage/venv/#including-pip-in-your-virtual-environment) + for more information. + > Note: By default, we create an app compatible with Tailwind CSS version 4. If you want to create an app compatible > with Tailwind CSS version 3, you can use the `--tailwind-version 3` flag: