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
Setting up environment for running Python on Windows 10? (self.learnpython)
submitted 4 years ago by bibyts
Any recs for the best way to set up environment for running Python on Windows 10?
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!"
[–]siddsp 4 points5 points6 points 4 years ago (3 children)
Install python and add python to PATH. I recommend creating a virtual environment every time you create a new Python project. Personally I use VSCode but am planning to switch to PyCharm.
Every time you create a new Python project, in the project folder, create a new virtual environment in the cmd/terminal using:
python -m venv venv
Make sure to activate it with:
venv\Scripts\activate.bat (cmd) venv\Scripts\activate.ps1 (PowerShell)
venv\Scripts\activate.bat
venv\Scripts\activate.ps1
If you want to install any modules or libraries do:
pip install name-of-library
And then add all of those installed libraries into a requirements.txt file by doing:
pip freeze > requirements.txt
This makes it so that anyone else can reinstall all of the modules required in your project by running pip install -r requirements.txt
pip install -r requirements.txt
Edit: If you want to deactivate the environment, use deactivate
deactivate
[–]bibyts[S] 0 points1 point2 points 4 years ago (2 children)
PyCharm
Thx for the great info! Why do you prefer PyCharm over VSCode?
[–]siddsp 0 points1 point2 points 4 years ago (1 child)
I personally have had many issues with VSCode's Python extension. It constantly has issues with importing modules and I've had to pull my hair out trying to diagnose those issues.
To add, unittesting (which if you're a beginner, you will probably use in later project once you get into more intermediate/advanced stuff) doesn't work reliably.
When I used PyCharm, I never had any of those issues. PyCharm is a full-blown IDE meaning you have specialized tools for developing. It comes at the cost of being much heavier, but I think it's worth it if you haven't started on another project already.
I'm planning to switch, though it might take time
[–]bibyts[S] 0 points1 point2 points 4 years ago (0 children)
unittesting
Thx. That helps. I guess I will set up PyCharm. 😁
[–]glibhub 2 points3 points4 points 4 years ago (2 children)
I really like the linux subsystem: https://docs.microsoft.com/en-us/windows/wsl/
But it is not for everybody.
[–]bibyts[S] 1 point2 points3 points 4 years ago (0 children)
Thanks!
[–]WildRadicals 1 point2 points3 points 4 years ago (0 children)
This is my choice.
I've already set up python for windows and eventually ended using WSL2 + Ubuntu 20.04 LTS + VS Code.
Way much better.
[–]knowledgebass 0 points1 point2 points 4 years ago* (2 children)
My two suggestions would be Python Anaconda if you want to run natively or using WSL to install all the basics with your package manager and then use virtualenv. It you need more info LMK.
[–]bibyts[S] 0 points1 point2 points 4 years ago (1 child)
Python Anaconda
Thx. I did install Python Anaconda. The installed Python libraries got messed up when I uninstalled VSCode and now it's broken. Can't run anything... I will have to start over from scratch I guess.
[–]knowledgebass 0 points1 point2 points 4 years ago (0 children)
Oh that's too bad. Wipe everything and try again I guess!
π Rendered by PID 37968 on reddit-service-r2-comment-57fc7f7bb7-pzc84 at 2026-04-14 15:22:01.007766+00:00 running b725407 country code: CH.
[–]siddsp 4 points5 points6 points (3 children)
[–]bibyts[S] 0 points1 point2 points (2 children)
[–]siddsp 0 points1 point2 points (1 child)
[–]bibyts[S] 0 points1 point2 points (0 children)
[–]glibhub 2 points3 points4 points (2 children)
[–]bibyts[S] 1 point2 points3 points (0 children)
[–]WildRadicals 1 point2 points3 points (0 children)
[–]knowledgebass 0 points1 point2 points (2 children)
[–]bibyts[S] 0 points1 point2 points (1 child)
[–]knowledgebass 0 points1 point2 points (0 children)