You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you want to test publishing to TestPyPI and install the package from the test index, prefer doing that inside a virtual environment. This avoids the "externally-managed-environment" / PEP 668 error you saw when trying to install system-wide on Debian/Ubuntu.
21
+
22
+
Recommended steps:
23
+
24
+
```bash
25
+
# create and activate a virtualenv
26
+
python3 -m venv .venv
27
+
source .venv/bin/activate
28
+
29
+
# upgrade pip in the venv
30
+
python -m pip install --upgrade pip
31
+
32
+
# install from TestPyPI; use --extra-index-url so runtime dependencies are resolved from the real PyPI
- The error "externally-managed-environment" happens when pip is blocked from modifying a system Python managed by the OS (PEP 668). The recommended fix is to use a virtual environment or pipx — do not use `--break-system-packages` unless you understand the risks.
38
+
- If you prefer `pipx` for isolated CLI installs, use `pipx install` inside a separate environment or consult pipx docs for installing from alternate indexes.
0 commit comments