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
Learn how to check if Python is installed on your Raspberry Pi device, and how to install it if needed.
Open the terminal by pressing
Ctrl + Alt + Tor going to the menu and selecting ‘Accessories’ > ‘Terminal’.Type
python3 -Vand 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.3In this example, Python 3.7.3 is installed on the Raspberry Pi.
If Python is not installed, follow these steps to install it:
Update the package lists by running
sudo apt-get updatein the terminal. This ensures that you have the latest list of packages available for installation.$ sudo apt-get updateInstall Python 3 using the following command:
$ sudo apt-get install python3You will be prompted to enter your password. Type it in and press Enter. The installation process will begin.
Once the installation is complete, verify that Python has been successfully installed by running
python3 -Vagain. 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!
