Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Aaron Coleman
Abdeali JK
Abdelrahman Elbehery
Abhijeet Kasurde
Abhiroop Gupta
ace2016
Adam Johnson
Adam Stewart
Expand Down
1 change: 1 addition & 0 deletions changelog/15242.doc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Added a note to the "Get Started" guide explaining how to resolve the ``error: externally-managed-environment`` error by using a virtual environment.
14 changes: 14 additions & 0 deletions doc/en/getting-started.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,20 @@ Install ``pytest``

pip install -U pytest

.. note::

On some operating systems (Ubuntu 24.04+, Debian, Fedora, and others) a
system-managed Python may reject this with
``error: externally-managed-environment``. The recommended fix is to
install pytest inside a **virtual environment**::

python -m venv .venv
source .venv/bin/activate # on Windows: .venv\Scripts\activate
pip install -U pytest

See :ref:`goodpractices` for more details on virtual environments and
recommended project layouts.

2. Check that you installed the correct version:

.. code-block:: bash
Expand Down
Loading