python -m venv .venv
source .venv/bin/activateThereafter use uv pip ...
Reason: uv venv creates an environment with clutter. To reproduce, run pip list in the newly created environment when using uv venv vs python -m venv .venv.
Alias to use: uvv instead of uv venv standing for python -m venv .venv; source .venv/bin/activate
uv pip listdoesn't list pip.- Sometimes, pip doesn't exist in a
uv venvenvironment
- Issue raised in favour of
uv pip list --not-required pip-autoremoverecursively removes a package and its unused dependencies. Latest version release date: 2021pip-purgeis an alternative forpip-autoremove. To run:chmod +x pip-purgethen./pip-purge X(X standing for the package name)