Strange python venv behaviour

Like others, I’ve had issues with python envs.

For instance, this happens in the terminal. I can’t even imagine how this is possible:

Despite running the right interpreter (according to the shell), things don’t work, as it can’t find packages.