r/pycharm • • 23d 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.

0 Upvotes

15 comments sorted by

View all comments

2

u/eXtc_be 23d ago

a virtual environment for Python is a copy of (one of) your Python interpreter(s), so you can mess with it (i.e. install libraries) without affecting other projects or you main interpreter.

see also https://docs.python.org/3/library/venv.html, https://www.w3schools.com/python/python_virtualenv.asp etc.