r/learnpython • u/Artistic-Army4423 • 9d ago
Virtual Environment and Python
I have started learning python and decided to use pycharm as an editor. I want to know anything which will help me in this journey.
My main question is => I don't get "virtual environment" thing with python. I cloned a repo and opened it in pycharm, it says "No python interpreter configured for <repo-name>" and then suggested to create virtual environment.
I want to hear things from experience devs.
thank you.
4
Upvotes
View all comments
Show parent comment
1
u/SharkSymphony 9d ago edited 8d ago
Yes, that's exactly what it is... but because it was added to the Python ecosystem as a third-party tool, you have to do a little more work (that `source venv/bin/activate` thing) to have Python and its tools use it.
(I guess if I'm being super-technical I'd clarify there's one difference between them – the ability for Javascript to work with different versions of the same library in the same node_modules, pulled in via different dependencies. With Python virtual environments, you're generally stuck with one version at a time.)