| 1 |
Datasette for Debian |
| 2 |
-------------------- |
| 3 |
|
| 4 |
Plugin Management (PEP 668) |
| 5 |
--------------------------- |
| 6 |
|
| 7 |
The "datasette install" and "datasette uninstall" commands use pip |
| 8 |
internally to manage plugins. On Debian systems, these commands will |
| 9 |
fail with "externally-managed-environment" due to PEP 668, which |
| 10 |
prevents pip from modifying the system Python environment. |
| 11 |
|
| 12 |
This is expected behavior and protects system integrity. |
| 13 |
|
| 14 |
To use datasette with plugins, install via pipx instead: |
| 15 |
|
| 16 |
pipx install datasette |
| 17 |
datasette install datasette-json-html |
| 18 |
datasette uninstall datasette-json-html |
| 19 |
|
| 20 |
Alternatively, use a virtual environment: |
| 21 |
|
| 22 |
python3 -m venv ~/.local/share/datasette-venv |
| 23 |
~/.local/share/datasette-venv/bin/pip install datasette |
| 24 |
~/.local/share/datasette-venv/bin/datasette install <plugin> |
| 25 |
|
| 26 |
The Debian package provides core datasette functionality. For the full |
| 27 |
plugin ecosystem, pipx or a virtual environment is recommended. |
| 28 |
|
| 29 |
-- Mahangu Weerasinghe <[email protected]> Sun, 30 Nov 2025 14:00:00 +0530 |