Installing Python (Windows, macOS, Linux step by step)
Installing Python: Step by Step Guide (Latest Version: 3.14.3)
Hey Jeffmoniac! 🚀 Since you’re gearing up for our Python course from Port Harcourt, let’s get Python installed on your machine. As of February 2026, the latest stable version is Python 3.14.3 – it’s reliable, feature-packed, and perfect for beginners. We’ll use the official methods from python.org to keep things safe and straightforward.
Download the installer for your OS from https://www.python.org/downloads/ – just click the big “Download Python 3.14.3” button, and it’ll auto-detect your system. (If you’re on a slow connection in Rivers State, grab it during off-peak hours!)
I’ll break it down by OS: Windows, macOS, and Linux. Follow the one that matches your setup. At the end, we’ll verify it works and set up your editor (VS Code, as we discussed).
Windows Installation
Python on Windows uses the official Python Install Manager for easy management of versions.
Prerequisites:
- Windows 10 or newer.
- Admin privileges (you might need them).
- Internet connection for downloads.
Steps:
- Download the Python Install Manager:
- Go to https://www.python.org/downloads/ or the Microsoft Store.
- Download the MSIX file and double-click it to install, or run Add-AppxPackage <path to MSIX> in PowerShell.
- Install a Python Runtime:
- Open Command Prompt or PowerShell.
- Run: py install 3.14 (this installs Python 3.14.3).
- If prompted, allow it to add to your PATH (recommended).
- Configure if Needed:
- If commands aren’t recognized, go to Settings > Apps > Installed apps > Manage app execution aliases, and enable Python-related ones.
- Add %UserProfile%\AppData\Local\Microsoft\WindowsApps to your PATH via System Properties > Environment Variables.
Common Issues:
- “Command not found”: Check aliases in Settings or reinstall the manager.
- Conflicts with old Python: Uninstall legacy versions via Settings > Apps.
- pip issues: Use python -m pip for package management.
Verification:
- Run py list to see installed versions.
- Run python –version – should show “Python 3.14.3”.
- Test: python -c “print(‘Hello from Windows!’)” – outputs “Hello from Windows!”.
macOS Installation
macOS installers are simple PKG files, and Python coexists with any system version.
Prerequisites:
- macOS 10.15 (Catalina) or newer.
- Admin privileges.
- Verify file integrity with checksums from the download page.
Steps:
- Download the Installer:
- From https://www.python.org/downloads/macos/, get the .pkg for Python 3.14.3.
- Run the Installer:
- Double-click the .pkg file.
- Click Continue > Agree to license.
- Choose Standard Install (or Customize for options like free-threaded build).
- Enter admin password and click Install.
- Post-Install:
- In /Applications/Python 3.14/, double-click “Install Certificates.command” – this sets up SSL certificates (important for web stuff in the course).
Common Issues:
- System Python conflict: The new one should take priority in /usr/local/bin – check with which python3.
- Gatekeeper block: Allow in System Settings > Privacy & Security.
- Certificate failure: Ensure internet access and retry.
Verification:
- Open Terminal: python3 –version – “Python 3.14.3”.
- which python3 – should be /usr/local/bin/python3.
- Test: python3 -c “print(‘Hello from macOS!’)” – outputs “Hello from macOS!”.
- Launch IDLE: python3 -m idlelib or from Applications.
Linux Installation
Linux often has Python pre-installed, but we’ll cover package managers (easiest) and building from source (for custom needs). Focus on common distros like Ubuntu (popular in Nigeria).
Prerequisites:
- Sudo access.
- For source build: Build tools (e.g., gcc, make) – install via your package manager.
- Internet for downloads.
Method 1: Using Package Managers (Recommended for Beginners)
- Ubuntu/Debian (e.g., if you’re on Ubuntu 22.04+):
- Update: sudo apt update
- Install: sudo apt install python3 python3-pip idle-python3.14 (includes IDLE editor).
- Fedora/RHEL/CentOS:
- sudo dnf install python3 python3-pip python3-idle
- SUSE/OpenSUSE:
- sudo zypper install python314 python314-pip python314-idle
- Alpine:
- sudo apk add python3 py3-pip python3-idle
This installs the latest available in your repos (might be slightly older than 3.14.3 – check with python3 –version).
Method 2: Building from Source (For Latest Version or Custom)
- Download Source:
- From https://www.python.org/downloads/source/, get Python-3.14.3.tgz.
- Extract: tar -xzf Python-3.14.3.tgz and cd into the folder.
- Configure and Build:
- Install prerequisites: On Ubuntu, sudo apt install build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev libsqlite3-dev wget libbz2-dev.
- Run: ./configure –enable-optimizations
- Compile: make -j $(nproc)
- Install: sudo make altinstall (uses altinstall to avoid overwriting system Python – installs as python3.14).
Common Issues:
- Overwriting system Python: Always use make altinstall.
- Missing dependencies: Install build-essential and dev libraries.
- PATH issues: Add /usr/local/bin to your PATH in ~/.bashrc.
Verification:
- python3.14 –version (or python3 –version for package manager install) – “Python 3.14.3”.
- Check location: which python3.14.
- Test: python3.14 -c “print(‘Hello from Linux!’)” – outputs “Hello from Linux!”.
Next Steps: Set Up Your Editor
Once installed:
- Download VS Code from code.visualstudio.com – it’s free and awesome for Python.
- Install the Python extension (by Microsoft) inside VS Code.
- Open a folder, create welcome.py as we did earlier, and run it (Ctrl+Shift+P > Python: