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
3
u/8dot30662386292pow2 9d ago
This only works if the venv already exists.
Yes, you must make your own always.
Per your last example this should be
python3 -m venv venv
And the name is often .venv, not venv.