There are three starting points, and all of them are free
Most tutorials assume a laptop with an administrator password. Plenty of people reading this have a phone, or a shared computer they cannot install software on. All three cases work.
You already have a laptop or desktop. Install from python.org/downloads. On Windows, the Python install manager provides the python and py commands. If you choose the traditional standalone installer, select Add python.exe to PATH. A missing python command can mean a command or PATH setup issue. Check the official Windows installation instructions before reinstalling.
On macOS, the installer gives you a command called python3. On Linux, Python is already there; python3 --version will tell you.
You have a phone. On Android, install Pydroid 3 from the Play Store: it ships a real Python with numpy and pandas already compiled, which matters, because compiling them yourself on a phone takes an hour. Termux (from F-Droid, not the Play Store version, which is abandoned) gives you a proper Linux shell and pkg install python. On iPhone, a-Shell is free and includes Python 3.
You have a browser and nothing else. Go to colab.research.google.com and start a new notebook. You get a free machine with Python, numpy, pandas and most of what this course needs, already installed. Kaggle Notebooks are the same idea. The honest limitation: the machine is temporary. It disconnects after roughly 90 minutes of inactivity and at most 12 hours in a session, and when it goes, every file you created on it goes too. Download anything you want to keep, or connect it to Google Drive.
Check that it worked
Open a terminal (Command Prompt or PowerShell on Windows, Terminal on macOS and Linux, the app itself on a phone) and type:
python3 --versionYou want something like Python 3.12.4. On Windows the command is usually just python.
The python versus python3 split
This confuses everybody once. Python 2 and Python 3 are different languages with the same name. Python 2 was retired on 1 January 2020, but for twenty years python meant Python 2 on Unix systems, so macOS and most Linux distributions still refuse to let python mean Python 3 by default. Some now leave python pointing at nothing at all.
The rule that always works: type python3 on macOS and Linux, python on Windows. If a tutorial says python and you get an error or a version starting with 2, add the 3.
The same split hits the installer: pip and pip3. Safer than both is python3 -m pip, which installs into the same Python you are running, and cannot get out of step. Module five goes into why that matters.
Which version to install
Choose a supported stable release from python.org. Before installing a package, check which Python versions it supports. A precompiled wheel must match your Python version and platform. If one is unavailable, installation may need a source build and additional tools. Use a supported version with compatible wheels for the packages in your project.
The language examples require Python 3.10 or later. Choose a currently supported release, then check any additional package requirements when they are introduced.
An editor, and why not a word processor
You need something that writes plain text. Never Word, Pages or Google Docs: they insert curly quotation marks, and Python does not accept them.
- IDLE ships with Python. It is plain, and it is already installed.
- Thonny (
thonny.org) is built for beginners: it shows variables changing as the program runs, which is useful for your first fortnight. - VS Code is free, is what most jobs use, and is heavier. Install the Python extension after it.
- On a phone, Pydroid has its own editor.
Any of these is fine. Do not spend an evening choosing.
Make a folder now
Create one folder for this course: Documents/python will do. Put every file you write inside it. When module five arrives with virtual environments, and lesson thirty-something with imports failing, half of those problems are “which folder was I in”. Starting tidy costs nothing.
The setup is not the skill. If installation fights you for more than half an hour, open Colab in a browser and start learning. You can come back and install later, with more context and less frustration.
Check your understanding
Somebody on macOS follows a tutorial that says python myfile.py and gets command not found: python, though they installed Python yesterday and the installer reported success. What is actually going on?
Pick the one you would defend. Your answer stays private.
Your place and first choices stay on this browser. Classroom credit is recorded separately.
Stuck on something?Ask Divya, your AI tutor