python -m venv makes an env that pip installs into the wrong place
On Ubuntu 22.04, python3 -m venv .venv makes an environment, but when I activate it and run pip install requests, pip says Defaulting to user installation because normal site-packages is not writeable and installs to ~/.local. Python inside the venv still can't import it. which python points at .venv/bin/python so I think activation is working. What am I missing here? I've done this a hundred times on other machines.
4 replies