The Setup Tax Nobody Talks About
You've just decided to learn Python. You Google "how to start Python project" and the top 5 results all scream: CREATE A VIRTUAL ENVIRONMENT FIRST. So you copy-paste python -m venv env, then source env/bin/activate (or was it env\Scripts\activate on Windows?), and suddenly your terminal looks different. You're not even sure what just happened, but you continue because the tutorial said so.
Then you close your terminal. Next day, you come back to write more code. Python can't find the packages you installed yesterday. You Google the error, realize you forgot to "activate" something, run the command again, and now it works. But you still don't know why.
This is where most beginners quit.
Virtual environments solve a real problem — dependency conflicts between projects. But that problem doesn't exist when you're writing your first 10 scripts. You're not juggling Django 3.2 and Django 4.0 projects simultaneously. You're trying to figure out what a dictionary is. The cognitive overhead of venv adds a 20% failure tax to an already steep learning curve.
Continue reading the full article on TildAlice

Top comments (0)