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

Show parent comment

2

u/RNG_HatesMe 18d ago

Dude, this is how you tell the world that you don't understand Python without actually saying you don't understand python.

It's very easy to wreck an environment. It can happen to even experienced developers if they install or update packages.

You create a virtual environment so a) you don't hose OTHER environments that you have developed other projects in, and b) you don't hose your base environment, requiring you to completely start from scratch.

This is just basic good practice, and one of the first things a competent developer learns. Package and environment management is a *critical* skill.

1

u/AdWest6565 18d ago

Perfect. You forgot to add 'and this is a STANDARD in Python development'
Wherever I hear the word 'standard' in IT discussions, 'I reach for my revolver' (c)

1

u/RNG_HatesMe 18d ago

So you don't think knowing how to management packages and environments is important?

I *teach* python in a University course, use it for automating business processes, data analysis and data acquisition, AND provide research programming support.

You know the number one thing I have to help novice python users do when they attempt to use it in their research? Reconstruct non-functional python environments because they've been installing packages willy-nilly based on AI responses and random internet searches.

Since they have *0* understanding of package dependencies and management, and don't know how to setup and maintain a stable environment, they have *0* idea of how to get their code working again. I guess you can tell them that environments aren't important, I'm sure that'll help get them up and running again.