Virtual environments stopped working after update

Virtual environments are activated as usual, but they are not working. You can’t install django, for example, or even ‘pip freeze’ to see the packages installed in virtual environments.

When venv is activated I now (after latest update) get this:

pip install django
error: externally-managed-environment

× This environment is externally managed
╰─> To install Python packages system-wide, try 'pacman -S
    python-xyz', where xyz is the package you are trying to
    install.

or if it is another command ‘pip freeze’, I get this:

pip freeze
Traceback (most recent call last):
  File "/home/sam/.virtualenvs/Django/bin/pip", line 3, in <module>
    from pip._internal.cli.main import main
ModuleNotFoundError: No module named 'pip'

Ah, well it is all due to the Python upgrade to version 3.14.2 from 3.13… in Manjaro.

All dependecies are broken for whatever reasons in virtual environments (all venvs have to be removed and installed again, uv packages also, btw).

Welcome to the forum! :vulcan_salute:

Please see this related thread… :backhand_index_pointing_down: