/u4_lesson_python_windows_install

This lesson will walk through all the steps necessary to install Python on a Windows machine.

Python Install for Windows

Python

  1. Download Python Installer:

    • Go to the official Python website and navigate to the Downloads section.
    • Click on the latest version of Python for Windows.
    • Choose the installer that corresponds to your system architecture (32-bit or 64-bit).
  2. Run the Installer:

    • Once the installer is downloaded, double-click on it to run it.
    • You may see a security warning, click "Yes" or "Run" to proceed.
  3. Install Python:

    • The installer will open.

    • Check the box that says "Add Python.exe to PATH".

    • Click on the "Install Now" button.

  4. Wait for Installation:

    • The installer will now install Python on your system. This may take a few minutes.
  5. Verify Installation:

  • Once the installation is complete, open the terminal and type:
    python --version
    You should see the installed Python version displayed.
  1. Install pip:
  • In the terminal, use the following command to install or upgrade pip:
    python -m pip install --upgrade pip
  1. Verify pip Installation:
    • After the installation or upgrade is complete, verify it by typing
     pip --version
    You should see the installed pip version displayed.

That's it! You've now installed Python and pip on your Windows system. You can use pip to install Python packages and manage dependencies for your projects.

VsCode Extensions

Install the following extensions for VS Code:

These extensions give us better support such as intellisense, autocomplete, and linting.

Note

All lessons are written from the perspective of a Mac, so whenever a lesson instructs you to use python3 as a command, please use python instead.

For example:

  • Instead of python3 --version, you'll use python --version