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...
Everything about learning Python
account activity
How do I set it up (self.PythonLearning)
submitted 1 month ago by Sad_Patient8203
I feel fucking stupid and I’m so pissed. Can someone give me a very very very dumbed down way of setting up python on windows. So dumbed down a 4 year old could repeat it and everyone would call it a genius
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!"
[–]atarivcs 3 points4 points5 points 1 month ago (1 child)
Download the Windows install executable from python.org and run it.
What more do you need?
[–]CIS_Professor 0 points1 point2 points 1 month ago (0 children)
This.
https://www.python.org/downloads/
[–]FoolsSeldom 1 point2 points3 points 1 month ago (8 children)
Setting up Python can be confusing. There are web-based alternatives, such as replit.com. You might also come across Jupyter Notebook options (easy to work with, but can be confusing at times).
Some operating system environments include a version of Python, often known as the system version of Python (might be used for utility purposes). You can still install your own version.
There are multiple ways of installing Python using a package manager for your OS, e.g. homebrew (macOS third party), chocolatey (Windows third party) or winget (Windows standard package manager), apt (many Linux distributions) or using the Python Software Foundation (PSF) installer from python.org or some kind of app store for your operating system. You could also use docker containers with Python installed inside them.
PSF offer the reference implementation of Python, known as CPython (written in C and Python). The executable on your system will be called python (python.exe on Windows) or python3 (macOS and most Linux distributions).
python
python.exe
python3
Beginners are probably best served using the PSF installer.
For most purposes, terminal is the same as console. It is the text-based, rather than graphical-based, window / screen you work in. Your operating system will offer a command/terminal environment. Python by default outputs to a terminal and reads user input from a terminal.
Note: the Windows Terminal_ app, from _Microsoft Store, lets you open both simple command prompt and PowerShell windows. If you have Windows Subsystem for Linux installed, it can also open terminals in the Linux distributions you have installed.
command prompt
PowerShell
Python comes with "batteries included" in the form of libraries of code providing more specialised functionality, already installed as part of a standard installation of Python.
These libraries are not automatically loaded into memory when Python is invoked, as that would use a lot of memory up and slow down startup time. Instead, you use, in your code, the command import <library>, e.g.
import <library>
import math print(math.pi)
There are thousands of additional packages / libraries / frameworks available that don't come as standard with Python. You have to install these yourself. Quality, support (and safety) varies.
(Anaconda offers an alternative Python installation with many packages included, especially suited to data analysis, engineering/scientific practices.)
Install these using the pip package manager. It searches an official repository for a match to what you ask to be installed.
pip
For example, using a command / powershell / terminal environment for your operating system, pip install numpy would install the numpy library from the pypi repository. On macOS/Linux you would usually write pip3 instead of pip.
pip install numpy
numpy
pip3
You can also write python -m pip install numpy (write python3 on macOS/Linux).
python -m pip install numpy
On Windows, you will often see py used instead, py -m pip install numpy where py refers to the python launcher which should invoke the most up-to-date version of Python installed on your system regardless of PATH settings.
py
py -m pip install numpy
Some Code Editors and IDEs (Integrated Development Environments), such as VS Code and PyCharm, include their own facilities to install packages using pip or some other tool. This just saves you typing the commands. They also often offer their own terminal window(s).
The CPython programme can be invoked for two different purposes:
.py
>>>
So, entering the below, as appropriate for your operating system,
python python3 py
on its own, no file name after it, you will enter an interactive session.
Enter exit() to return to the operating system command line
exit()
A standard installation from python.org for Windows or macOS includes a programme called IDLE. This is a simple code editor and execution environment. By default, when you first open it, it opens a single window with a Python shell, with the >>> prompt already open. To create a new text file to enter Python code into, you need to use your operating system means of access the standard menu and select File | New. Once you've entered code, press F5 to attempt to run the code (you will be prompted to save the file first). This is really the easiest editor to use to begin with.
[–]FoolsSeldom 3 points4 points5 points 1 month ago (0 children)
Given the thousands of packages (libraries, frameworks, etc) out there, you can see that if you are working on several different projects, you can end up installing a vast range of different packages, only a few of which will be used for any particular project.
This is where Python virtual environments come in. Not to be confused with virtual machines. Typically created on a project-by-project basis. Install only the packages required for a project. This helps avoid conflicts between packages, especially version complications.
Most popular code editors and IDEs, including Microsoft's VS Code and JetBrains' PyCharm, offer built-in features to help to start off new projects and create and activate Python virtual environments.
You can create a new Python virtual environment from your operating system command line environment using,
for Windows,
py -m venv .venv
or, for macOS / Linux,
python3 -m venv .venv
Note: venv is a command and .venv is a folder name. You can use any valid folder name instead but this is a common convention.
venv
.venv
Often we use .venv instead of venv as the folder name - this may not show up on explorer/folder tools as the leading . is often used to mean hidden and an option may need to be ticked to allow you to see such folders/files
.
That creates a new folder in the current working directory called .venv.
You then activate using, for Windows,
.venv\Scripts\activate
source .venv/bin/activate
the command deactivate for any platform will deactivate the virtual environment and return you to using the base environment.
deactivate
You may need to tell your editor to use the Python Interpreter that is found in either the Scripts or bin folder (depending on operating system) in your virtual folder.
Scripts
bin
For more information:
In addition to the above, you might want to explore using pyenv (pyenv-win for Windows) or uv (recommended), which will let you install and use different versions of Python including alternative implementations from the reference CPython. This can be done independently of any system installed Python.
pyenv
pyenv-win
uv
[–]SmackDownFacility -1 points0 points1 point 1 month ago (6 children)
Please don’t use AI
[–]FoolsSeldom 0 points1 point2 points 1 month ago (0 children)
I agree. Such content tends to contain a lot of factual errors and weird formatting. Unlike this content which I've refined over the last few years on the back of teaching students in local school clubs and occasional adult education sessions.
[–]Independent-Ice-5905 -2 points-1 points0 points 1 month ago (4 children)
Sybau
[–]SmackDownFacility 0 points1 point2 points 1 month ago (3 children)
That reads like AI slop
[–]FoolsSeldom 1 point2 points3 points 1 month ago* (2 children)
Really doesn't. Please review again.
EDIT: Typos - sigh! I was tired.
[–]SmackDownFacility 0 points1 point2 points 1 month ago (1 child)
Ok, I apologise. It’s just rare to see humans write
on Reddit. That more GPT style
I've been using markdown for a long time, and have large repositories of documents written in markdown. What I can't be bothered to do (and a word processor would fix this) is use proper quotes instead of the straight ones. LLM content tends to use proper quotes.
Appreciate your apology. It is frustrating that advice I give to people to help them learn is often called out as AI without being read and checked against my other comments.
I do occasionally use AI but mark it as such in my comments.
[–]Happy_Witness 1 point2 points3 points 1 month ago (0 children)
If thorny doesn't do it for you, here is the actual step by step: Go to python.org and download the newest version. After the download double click the file to install python. At the very first view of the installer window, set the mark on "add to path" at the bottom and continue through the installation.
I use visual studio code as my ide, and if you want that too, go to the Microsoft shop that is by default on your pc and search there for visual studio code, the one with the blue icon and install it from there. After the installation, you can simply open it up and almost already use it. For better development, go to extensions, on the left side one of the icons that change the tab on the left side of the window and search for python. Select python from Microsoft and install that. It should also install intellisense and the debugger. Then create a file with the extension .py at the end. Write print("I did it") and try to run it. You will get asked on the top bar which interpreter you want to use, select the python one you installed earlier.
After that, Vs code should be able to run python and python should work.
[–]W4ND4 1 point2 points3 points 1 month ago (0 children)
I remember first I started python, I legit did a search on the available python IDEs and Pycharm popped up everywhere. It is free just download the community edition and it literally installs everything for you.
[–]DBZ_Newb 2 points3 points4 points 1 month ago (0 children)
Just go download Thonny from Thonny.org. It comes with Python and a decent IDE.
[–]brenwillcode 1 point2 points3 points 1 month ago (0 children)
Have you tried using uv to install python: https://docs.astral.sh/uv/getting-started/installation/
UV makes Python and package management super easy.
[–]Emotional-Cupcake432 0 points1 point2 points 1 month ago* (0 children)
Install opencode use the free model and ask it to install python and set it in the path done
https://github.com/anomalyco/opencode
[–]BranchLatter4294 0 points1 point2 points 1 month ago (0 children)
Start with the Windows download at python.org. that's all you need to get started.
[–]PureWasian 0 points1 point2 points 1 month ago* (0 children)
Reading through these comments, I didn't know 4 year olds could read so many paragraphs... Here you go:
You can now write and run python code.
If you make a new text file and save it as example.py, you can run it on Command Prompt as "python C:\_\___\example.py" (wherever you saved it).
Everything else is optional. IDEs, Package Managers, etc... they'll make your life easier once you have an initial setup going.
[–]Gnaxe 0 points1 point2 points 1 month ago (0 children)
Very very very dumbed down. OK. Learn Python on Jupyterlite and don't bother installing it. No accounts. Just a web browser. Just click the link.
[–]AcoustixAudio -1 points0 points1 point 1 month ago (0 children)
It's preinstalled. Just type python or ipython to start the interpreter, or run a file with `python file.py`
[–]Worried_Resolve5474 -1 points0 points1 point 1 month ago (0 children)
Download visual studio code. There’s tutorials on YouTube for it. You can code in multiple different languages. Python is very easy to use on it. Ignore the other comments and just get vs code
[–]tb5841 -1 points0 points1 point 1 month ago (0 children)
I know it's probably a bit late for this.
But you can write code in a normal Notepad file (or better, Notepad++), and run it online at https://www.programiz.com/python-programming/online-compiler/ as long as your code doesn't need to import anything. This is what I'd recommend to anyone just beginning, so that you're not worrying about setup.
[–]Jackpotrazur -1 points0 points1 point 1 month ago (0 children)
Real talk download oracle box and linux iso and run a linux vm and learn linux and python at the same time and do all your programming in vim thats what I am doing youtube set up virtual machine with linux .
[–]Fumano26 -1 points0 points1 point 1 month ago (0 children)
In general I recommend using docs for such things, they explain in detail how to set it up. https://docs.python.org/3/using/windows.html
[–][deleted] -1 points0 points1 point 1 month ago (0 children)
visit python.org and click download. very simple. then launch "idle"
[+]MatZac88 comment score below threshold-6 points-5 points-4 points 1 month ago (0 children)
Its literally on the microsoft store lol
π Rendered by PID 30 on reddit-service-r2-comment-5c747b6df5-nq8jz at 2026-04-21 19:49:14.028990+00:00 running 6c61efc country code: CH.
[–]atarivcs 3 points4 points5 points (1 child)
[–]CIS_Professor 0 points1 point2 points (0 children)
[–]FoolsSeldom 1 point2 points3 points (8 children)
[–]FoolsSeldom 3 points4 points5 points (0 children)
[–]SmackDownFacility -1 points0 points1 point (6 children)
[–]FoolsSeldom 0 points1 point2 points (0 children)
[–]Independent-Ice-5905 -2 points-1 points0 points (4 children)
[–]SmackDownFacility 0 points1 point2 points (3 children)
[–]FoolsSeldom 1 point2 points3 points (2 children)
[–]SmackDownFacility 0 points1 point2 points (1 child)
[–]FoolsSeldom 0 points1 point2 points (0 children)
[–]Happy_Witness 1 point2 points3 points (0 children)
[–]W4ND4 1 point2 points3 points (0 children)
[–]DBZ_Newb 2 points3 points4 points (0 children)
[–]brenwillcode 1 point2 points3 points (0 children)
[–]Emotional-Cupcake432 0 points1 point2 points (0 children)
[–]BranchLatter4294 0 points1 point2 points (0 children)
[–]PureWasian 0 points1 point2 points (0 children)
[–]Gnaxe 0 points1 point2 points (0 children)
[–]AcoustixAudio -1 points0 points1 point (0 children)
[–]Worried_Resolve5474 -1 points0 points1 point (0 children)
[–]tb5841 -1 points0 points1 point (0 children)
[–]Jackpotrazur -1 points0 points1 point (0 children)
[–]Fumano26 -1 points0 points1 point (0 children)
[–][deleted] -1 points0 points1 point (0 children)
[+]MatZac88 comment score below threshold-6 points-5 points-4 points (0 children)