Raspberry Pi: Installing Python

Published: 10 June 2024
on channel: Arcade Spinner
366
7

Need steps to install Python on the Raspberry Pi? In this tutorial, I show you how to get any version of Python installed on your Raspberry Pi by downloading Python and building the Python package on your Pi!

=== Commands Used ===
Update package list: sudo apt-get update
Install build tools: sudo apt-get install build-essential tk-dev libncurses5-dev libncursesw5-dev libreadline6-dev libdb5.3-dev libgdbm-dev libc6-dev libsqlite3-dev libssl-dev libbz2-dev libexpat1-dev liblzma-dev zlib1g-dev libffi-dev
Unzip archive/tarball: tar xf Python-3.8.1.tar.xz (substitute 3.8.1 with your version)
Build Python package: ./configure
Build Python from package: make -j 4
Install Python from built package: sudo make altinstall
Upgrade SetupTools: sudo python3.8 -m pip install --upgrade setuptools (substitute 3.8.1 with your version)
Delete unzipped Python archive folder: sudo rm -r Python-3.8.1
Delete Python archive/tarball: sudo rm Python-3.8.1.tar.xz

=== URLs Used ===
https://www.python.org/ftp/python/3.8.1/ (substitute 3.8.1 with your version)

#raspberrypi #raspberrypi5 #raspberrypiprojects #raspberrypi4


Watch video Raspberry Pi: Installing Python online without registration, duration hours minute second in high quality. This video was added by user Arcade Spinner 10 June 2024, don't forget to share it with your friends and acquaintances, it has been viewed on our site 366 once and liked it 7 people.