Skip to content
IT Vizag
← Files, Modules & Packages

▶ 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

Lesson 8 of 10 · 2 min read

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):

🔒 Code example: sign up free (above) to unlock it.

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

  1. Make a folder called python-projects and open it in VS Code (File → Open Folder).
  2. Create hello.py:
🔒 Code example: sign up free (above) to unlock it.
  1. Open the terminal inside VS Code (View → Terminal) and run:
🔒 Code example: sign up free (above) to unlock it.

You can also press the ▶ button at the top right.

Terminal basics you'll need

🔒 Code example: sign up free (above) to unlock it.

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 py on 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 python3 and pip3.
Tip: A low-cost laptop is enough for everything up to the advanced courses. Heavy machine learning can still run in Colab on Google's computers.

In one line

Install Python (with PATH ticked) and VS Code, then run .py scripts from the terminal with python file.py.

Saved on this device. Sign in to keep progress everywhere.

Share with a friend