Mac storage basics · Programming languages and toolchains
How do I find and delete unused Python virtual environments?
Short answer: Each virtual environment is a folder (.venv, venv, env) holding its own packages. Delete ones you don't use; recreate them from requirements.txt when needed.
A virtual environment is just a folder (often named .venv, venv or env) inside or next to a project, holding its own copy of every package. Data-science packages can make each one large.
To remove one, make sure nothing is using it and delete the folder — it can be recreated any time from the project's requirements.txt or lock file. To find them, search your projects folder for those folder names (Finder hides names starting with a dot unless you press Shift-Command-.). Conda environments are managed differently — see cleaning up conda.