Skip to content

Commit cb435a8

Browse files
committed
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.
1 parent 95b5a78 commit cb435a8

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

docs/installation.md

+9
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,15 @@
3737
python manage.py tailwind init
3838
```
3939

40+
If you are using [pdm](https://pdm-project.org/), you might need to ensure `pip` is installed in your virtualenv:
41+
42+
```bash
43+
pdm run python -m ensurepip
44+
```
45+
46+
See [pdm's documentation](https://pdm-project.org/en/latest/usage/venv/#including-pip-in-your-virtual-environment)
47+
for more information.
48+
4049
> Note: By default, we create an app compatible with Tailwind CSS version 4. If you want to create an app compatible
4150
> with Tailwind CSS version 3, you can use the `--tailwind-version 3` flag:
4251

0 commit comments

Comments
 (0)