A Step-by-Step Guide on How to Verify Python Installation on Your Raspberry Pi

Learn how to check if Python is installed on your Raspberry Pi device, and how to install it if needed. …


Updated August 7, 2023

Need help with your Raspberry Pi?
Contact Me!

Do you love silly Raspberry Pi Projects?
Check out my this YouTube Channel!


Learn how to check if Python is installed on your Raspberry Pi device, and how to install it if needed.

  1. Open the terminal by pressing Ctrl + Alt + T or going to the menu and selecting ‘Accessories’ > ‘Terminal’.

  2. Type python3 -V and press Enter. This will display the current version of Python installed on your Raspberry Pi if it is already installed. If not, you will see an error message.

    $ python3 -V
    Python 3.7.3
    

    In this example, Python 3.7.3 is installed on the Raspberry Pi.

If Python is not installed, follow these steps to install it:

  1. Update the package lists by running sudo apt-get update in the terminal. This ensures that you have the latest list of packages available for installation.

    $ sudo apt-get update
    
  2. Install Python 3 using the following command:

    $ sudo apt-get install python3
    

    You will be prompted to enter your password. Type it in and press Enter. The installation process will begin.

  3. Once the installation is complete, verify that Python has been successfully installed by running python3 -V again. You should see the version number displayed:

    $ python3 -V
    Python 3.7.3
    

Now you can be sure that Python is installed on your Raspberry Pi and ready to use!