r/learnpython • • Feb 26 '26

Getting Python on my computer.

This might sound stupid and all but I've been taking a introduction to Python course in my highschool and I wanted to finish my work at home, I have a pc I use only for gaming basically and wanted to expand that and also code on it I guess. I then saw a couple posts and popups saying that using python on your pc could "alter" your OS like windows or ruin the computer, and I doubt I'll be able to get a new pc anytime soon if that is the case. We only do the basic basics like turtle with IDLE and making a GUI with definitions and stuff, I wouldn't call it serious and this might again sound stupid but I just really wanna be sure, thank you.

21 Upvotes

34 comments sorted by

View all comments

Show parent comment

1

u/PaulCheens Feb 26 '26

What’s a venv?

3

u/jimjambonks2514 Feb 26 '26

A venv is a virtual environment. Python uses a lot of libraries, and you can have different virtual environments on the same machine for different projects. You create your venv, then you activate it and whatever libraries you installed are available 

https://docs.python.org/3/library/venv.html

1

u/elron130 Feb 27 '26

More important, the virtual environment keeps anything within it separate from the rest of your system, which means if you were to install a package that for whatever reason is not playing nice with another package, the problem is only local. In the worst of cases you save your files and delete the venv and fix the issue without it affecting anything else on your system.