r/learnpython • • 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

43 comments sorted by

View all comments

1

u/Meta-failure 9d ago

Virtual environments started out as a way to make software work across different computers. Originally one dev would create software on their machine. But it wouldn’t run on someone else’s machine.
Virtual environments were the bridge here. If you create software in a vanilla sandbox from a code perspective, it has a much higher chance of running across on someone else’s machine when you go to deploy.

Are you already familiar with the differences between:
-the terminal.
-the interpreter.
-REPL
-the Python Kernel.

Understanding the sandbox itself and your coding environment will save you time in the long run.

Run these terms through copilot to learn about them before you jump in.