🌐
Hackster.io
hackster.io › rajeshjiet › installing-python-in-raspberry-pi-012e57
Installing Python in Raspberry Pi - Hackster.io
June 17, 2023 - You can do this by clicking on the terminal icon in the taskbar, or you can use the keyboard shortcut `Ctrl+Alt+T`. 2. Update the package lists and upgrade the existing packages by running the following commands: ... 3. Python is usually ...
🌐
Raspberry Pi Forums
forums.raspberrypi.com › board index › programming › python
How to install Python 3 - Raspberry Pi Forums
python3 -m pip install package If you want to install it in a particular version of python, use python2, or python3.8 if you have it or something else.
Discussions

How to download and install Python 3.5 in Raspbian - Raspberry Pi Stack Exchange
To get into the REPL of 3.5 type python3.5 on your terminal. The existing python distribution remains intact without issues. Verify that using the python. I have tried installing python 3.4 and 3.5 versions. pi@raspberrypi:/etc/openhab/configurations $ python -V Python 2.7.9 pi@raspberrypi... More on raspberrypi.stackexchange.com
🌐 raspberrypi.stackexchange.com
September 2, 2016
How to install python 3 and setuptools on raspberry pi? - Stack Overflow
I guess it's because the setuptool of python did not installed, so according to this, I run the command, but still have above error. Then I tried sudo easy_install pip and pip install you-get, but got this error: pi@raspberrypi ~ $ sudo pip install you-get Downloading/unpacking you-get Downloading ... More on stackoverflow.com
🌐 stackoverflow.com
repository - Raspberry pi - can't install Python 3.11 - Stack Overflow
I am setting up a raspberry pi with OS: Raspbian GNU/Linux 11 (bullseye), and it comes with 3.9.x and I need ver 3.11. Below is what I get when I add the repository (any suggestions what to do here... More on stackoverflow.com
🌐 stackoverflow.com
GUIDE: How to establish Bluetooth serial communication between two Pi 3's
Thank you, this is a great guide for something that's not too well covered in currently available tutorials! More on reddit.com
🌐 r/raspberry_pi
8
18
July 15, 2017
🌐
RaspberryTips
raspberrytips.com › install-latest-python-raspberry-pi
How To Install the Latest Python Version on Raspberry Pi? – RaspberryTips
September 25, 2025 - In my case, I will install Python 3.13.6. Scroll to the bottom of the next page, and find the list of download links: Right-click on Gzipped source tarball and choose Copy link address from your browser context menu.
🌐
MAC Address Lookup
aruljohn.com › home › articles › raspberry pi
How to Install Python 3.13.7 on the Raspberry Pi
September 17, 2025 - On my Raspberry Pi v3, this took about 45 minutes. ./configure --enable-optimizations sudo make altinstall · If you want it to build faster, you can replace ./configure --enable-optimizations with ./configure. In that case, you will be doing this. ... This will install Python at /usr/local/bin/python3.13.
🌐
EnableGeek
enablegeek.com › home › install python on a raspberry pi: step-by-step guide
Install Python on a Raspberry Pi: Step-by-Step Guide - EnableGeek
March 21, 2024 - Alternatively, Python can also be downloaded and installed using the command line in the terminal, using tools such as “wget”. Here is an example of how to download Python 3.10.0 on Raspberry Pi 4 using the terminal:
🌐
Tom's Hardware
tomshardware.com › raspberry pi
How To Install Python Modules on Raspberry Pi 5 and Earlier Models | Tom's Hardware
October 21, 2023 - New server-focused SPEC CPU 2026 ... check that it is available via the package manager and then we can install. 1. Open a terminal and search ......
Find elsewhere
🌐
Raspberry Pi
raspberrypi.com › home › news › using python with virtual environments | the magpi #148
Using Python with virtual environments | The MagPi #148 - Raspberry Pi
November 25, 2024 - On Linux, you can install python dependencies in two ways: ... Packages installed via apt are packaged specifically for Raspberry Pi OS. These packages usually come pre-compiled, so they install faster. Because apt manages dependencies for all packages, installing with this method includes all of the sub-dependencies needed to run the package.
🌐
Pi My Life Up
pimylifeup.com › home › how to install pip on the raspberry pi
How to install pip on the Raspberry Pi - Pi My Life Up
April 1, 2025 - To install pip on your Raspberry Pi, you must use the following command within the terminal. ... We are specifically installing pip for Python 3.
🌐
Raspberry Pi
raspberrypi.com › documentation › computers › os.html
Raspberry Pi OS - Raspberry Pi Documentation
On Linux, you can install python dependencies in two ways: ... Packages installed via apt are packaged specifically for Raspberry Pi OS. These packages usually come pre-compiled, so they install faster. Because apt manages dependencies for all packages, installing with this method includes all of the sub-dependencies needed to run the package.
🌐
SparkFun Learn
learn.sparkfun.com › tutorials › python-programming-tutorial-getting-started-with-the-raspberry-pi › configure-your-pi
Python Programming Tutorial: Getting Started with the Raspberry Pi - SparkFun Learn
You should see some version of Python 3 being used. Full Desktop: If you are using the full desktop version of Raspbian, you should have pip already installed.
Top answer
1 of 3
12

I tried installing the python3.5.2 with the below steps and I was successful.

1. wget https://www.python.org/ftp/python/3.5.2/Python-3.5.2.tar.xz
2. tar -xvf Python-3.5.2.tar.xz
3. cd Python-3.5.2
4. ./configure
5. make
6 make altinstall

Once the installation is completed use which python3.5 command to get the binary location

In my case it was installed in the location /usr/local/bin/python3.5.

To get into the REPL of 3.5 type python3.5 on your terminal. The existing python distribution remains intact without issues. Verify that using the python. I have tried installing python 3.4 and 3.5 versions.

pi@raspberrypi:/etc/openhab/configurations $ python -V
Python 2.7.9
pi@raspberrypi:/etc/openhab/configurations $ python3.5 -V
Python 3.5.2
pi@raspberrypi:/etc/openhab/configurations $ python3.4 -V
Python 3.4.2

Also as time permits I suggest you to read the article https://stackoverflow.com/questions/16018463/difference-in-details-between-make-install-and-make-altinstall.

It should work. The only issue while i faced during installation is the time taken for the whole process. It took almost 3 hours because a lot of time is consumed in compiling the binaries and then installing python.

2 of 3
7

First of all you need to get your dependencies right. That mostly depend on what you have already installed previously. So for a vanilla fresh Raspbian (jessie), you will (approximately) need to make sure you have these:

sudo apt-get install build-essential libc6-dev
sudo apt-get install libncurses5-dev libncursesw5-dev libreadline6-dev
sudo apt-get install libdb5.3-dev libgdbm-dev libsqlite3-dev libssl-dev
sudo apt-get install libbz2-dev libexpat1-dev liblzma-dev zlib1g-dev

The rest is simple. First download and extract...

cd $HOME
wget https://www.python.org/ftp/python/3.5.2/Python-3.5.2.tgz
tar -zxvf Python-3.5.2.tgz

...and then compile with:

cd Python-3.5.2
./configure       # 3 min 13 s
# We have 4 processors, so let's use 4 threads
make -j4          # 8 min 29 s
sudo make install # ~ 4 min

Save your SD card space:

cd ..
sudo rm -fr ./Python-3.5.2*

Now test with:

cd
python3 --version
# output: "Python 3.5.2"
pip3 list
# output: 
# pip (8.1.1)
# setuptools (20.10.1)
# You are using pip version 8.1.1, however version 8.1.2 is available.
# You should consider upgrading via the 'pip install --upgrade pip' command.

Update your default pip installation with:

sudo pip3 install -U pip
sudo pip3 install -U setuptools

Done!

🌐
YouTube
youtube.com › watch
Raspberry Pi: Installing Python - YouTube
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...
Published   June 10, 2024
🌐
Blog
halvorsen.blog › documents › programming › python › resources › powerpoints › Installing Python Packages on Raspberry Pi.pdf pdf
Hans-Petter Halvorsen https://www.halvorsen.blog Installing Python Packages
• Alt 1. You can run "sudo apt-get install python3- packagename" from the Terminal in Raspberry Pi OS to still · install packages "system-wide". • Alt 2. You can create a new virtual Python environment on · the Raspberry Pi. – This is the recommended alternative as you do not destroy ·
🌐
Luis Llamas
luisllamas.es › inicio › cursos › curso raspberry pi
How to Install Python on Raspberry Pi
November 25, 2024 - You should see the output “Hello, Raspberry Pi!” in the terminal. Pip is a tool that allows you to install additional Python packages and modules.
🌐
Pi My Life Up
pimylifeup.com › home › getting started with python on the raspberry pi
Getting Started with Python on the Raspberry Pi - Pi My Life Up
January 29, 2022 - This line is incredibly simple and will just print the text “Hello World” to the terminal. We do this by simply passing the string "Hello World" into the “print()” function. 3. Once you have finished entering the code, you can save and quit out of the file. If you are using nano, you can do this by pressing CTRL + X, then Y, followed by the ENTER key. 4. With your Python file now created on your Raspberry Pi, we can now run it.
🌐
Raspberry Pi Forums
forums.raspberrypi.com › board index › using the raspberry pi › beginners
How to install Python onto my Raspberry Pi-3 - Raspberry Pi Forums
Hi Roger, What distribution (operating system) are you using? Rasbian? Ubuntu Mate? If you are running Raspbian (not the Lite version), Python is pre-installed. If you aren't running Raspbian, I would strongly recommend as a new user of Raspberry Pi to switch to it. To install python though, you can use apt: