▶ Sign up free for the video, slides & prompts
The lesson below is open to all. Enter your email once to unlock every video, slide deck, prompt and code example on this device.
Checking…
Running Python on your laptop
Install Python and VS Code and run scripts from the terminal.
🎬 Video version coming soon — read it now
Colab is great for learning, but real projects run on your own computer. Here's how to set up a professional environment in about 20 minutes.
1. Install Python
- Windows: download from python.org. In the installer, tick "Add python.exe to PATH" before clicking Install. This is the step people miss most often.
- Mac: download from python.org, or use Homebrew:
brew install python. - Linux: usually already installed. Check with
python3 --version.
Check it worked in a terminal (Command Prompt, PowerShell or Terminal):
2. Install VS Code
Download Visual Studio Code (free) from code.visualstudio.com. Then open Extensions (the four-squares icon) and install Python by Microsoft. It adds running, debugging and error highlighting.
3. Your first script
- Make a folder called
python-projectsand open it in VS Code (File → Open Folder). - Create
hello.py:
- Open the terminal inside VS Code (View → Terminal) and run:
You can also press the ▶ button at the top right.
Terminal basics you'll need
Script vs notebook
- Notebooks (Colab, Jupyter): great for exploring data and learning step by step
- Scripts (.py files): for programs that run from start to finish, automation, apps and anything you deploy
Most professionals use both.
Common setup problems
- "python is not recognised": Python isn't on PATH. Re-run the installer and tick the box, or use
pyon Windows. - Module not found after pip install: pip installed into a different Python. Use
python -m pip install ...so pip and python always match. - Mac opens Python 2 or nothing: use
python3andpip3.
In one line
Install Python (with PATH ticked) and VS Code, then run .py scripts from the terminal with python file.py.
Share with a friend