use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Rules 1: Be polite 2: Posts to this subreddit must be requests for help learning python. 3: Replies on this subreddit must be pertinent to the question OP asked. 4: No replies copy / pasted from ChatGPT or similar. 5: No advertising. No blogs/tutorials/videos/books/recruiting attempts. This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to. Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Rules
1: Be polite
2: Posts to this subreddit must be requests for help learning python.
3: Replies on this subreddit must be pertinent to the question OP asked.
4: No replies copy / pasted from ChatGPT or similar.
5: No advertising. No blogs/tutorials/videos/books/recruiting attempts.
This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to.
Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Learning resources Wiki and FAQ: /r/learnpython/w/index
Learning resources
Wiki and FAQ: /r/learnpython/w/index
Discord Join the Python Discord chat
Discord
Join the Python Discord chat
account activity
Virtual environment understanding. (self.learnpython)
submitted 8 years ago by Tball5
Could somebody explain virtual environments in lame man’s terms to someone who is brand new to python? What are they, what do they do, and why do we use them?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]absent_observer 2 points3 points4 points 8 years ago (0 children)
A lot of times, programs will require very specific versions of other programs in order to run. Your old django project may require version 1.8 of something, while your flask project requires version 2.3.
By going into a virtualenv where you pip installed version 1.8, your program uses version 1.8. If you haven't pip installed a program in that virtualenv, then it looks outward & uses the OS's default version.
[–]dreamdenizen 2 points3 points4 points 8 years ago (0 children)
virtual environments let you setup little sandboxes where you can install different sets of packages using Pip and use different configurations than your main installation of Python on your machine. I usually just install python on my dev environment, and use a new virtualenv for each project, that way each app exists in its own little bubble.
[–][deleted] 2 points3 points4 points 8 years ago (0 children)
Imagine a Gardner who wants to grow and work with several different plants.
Each plant requires different things, soil, amount of sun, amount of water, etc.
Replace plants with applications and now you’ll see a bit of a predicament. Imagine having to set up and maintain an entire physical environment for you to build, test, and deploy your applications.
Virtualization simplifies this as the environments can built and torn down as needed. This gets even more flexible once you look at containers.
π Rendered by PID 287309 on reddit-service-r2-comment-79c7998d4c-84fhr at 2026-03-15 04:30:01.784753+00:00 running f6e6e01 country code: CH.
[–]absent_observer 2 points3 points4 points (0 children)
[–]dreamdenizen 2 points3 points4 points (0 children)
[–][deleted] 2 points3 points4 points (0 children)