Detailed virtualenv example#45
Conversation
There was a problem hiding this comment.
I try to avoid env, venv, etc for my virtualenvs. It makes them too hard to distinguish between them when they're activated.
There was a problem hiding this comment.
I'll agree with this sentiment, in general. The reason why I usually stick with "venv" is that I try to force myself to single-task, so I'm never actively juggling environments. The (venv) in the prompt is just there to let me know what I'm in an active virtual environment. That said, I think you're probably right.
There was a problem hiding this comment.
Perhaps you're right. Having a single, short string is probably useful. It enforces a discipline of focus.
There was a problem hiding this comment.
I think venv is fine as a generic example. Anything is better than virtualenv ., which everyone was pushing for years. shudders
|
This is fantastic, thanks! ✨ 🍰 ✨ |
Detailed virtualenv example
Not sure if it's overkill, but I wanted to add a more detailed example of how virtualenv actually works in practice. Besides, I thought it would be nice to cover this before recommending virtualenvwrapper to someone.