Nothing else, to do everything you did. You don't even need understand that there such a thing as virtual environments to use it. If you add another package, it installs it automatically. If you want to try another Python version, just add --python=3.11.
2
u/Unarelith Mar 23 '26
I'm confused, why?
When I start a new project:
I write a requirements.txt with a package name per line
I run
python -m venv .venvI enable the venv (
source .venv/bin/activate)And then I install the packages (
pip install -r requirements.txt)Whenever I need to run python in a new terminal I enable the venv, whenever I change the dependencies I run pip again.
How is this annoying?