How to install Ollama on the Raspberry Pi 5
Ollama is a framework that lets you run powerful AI models directly on your Pi, for tasks like text generation and translation.
Written By: Cherie Tan
![](https://cdn.shopify.com/s/files/1/0829/7493/3281/files/raspberry_pi_ollama_guide_image.001.jpg?v=1717562186)
![Dash icon](https://fast.littlebird.com.au/static/guides/dash.webp)
Difficulty
Easy
![Steps icon](https://fast.littlebird.com.au/static/guides/steps.webp)
Steps
4
Have you ever wanted to experiment with powerful artificial intelligence models but lacked the resources for cloud computing? Ollama offers a solution! This framework allows you to run large language models (LLMs) directly on your Raspberry Pi 5, opening doors for exciting projects and exploration.
![](https://cdn.shopify.com/s/files/1/0829/7493/3281/files/ollama_with_raspberry_pi_5_steps_installation.001.jpg?v=1717573094)
- Open the terminal window on your Raspberry Pi.
- Type the following command and press Enter:
sudo apt update
Note: Ensure your Raspberry Pi is running a 64-bit operating system. Ollama won't work on 32-bit systems.This updates the list of available software packages. Next, type this command and press Enter:
sudo apt upgrade
Use code with caution.
content_copy
This upgrades your Raspberry Pi's software to the latest versions.
![](https://cdn.shopify.com/s/files/1/0829/7493/3281/files/ollama_with_raspberry_pi_5_steps_installation.002.jpg?v=1717573093)
![](https://cdn.shopify.com/s/files/1/0829/7493/3281/files/20240703_12h07m08s_grim.png?v=1719972651)
In the terminal window, type the following command and press Enter:
sudo apt install curl
This installs the
curl
package, which Ollama uses to download its installer.![](https://cdn.shopify.com/s/files/1/0829/7493/3281/files/ollama_with_raspberry_pi_5_steps_installation.003.jpg?v=1717573093)
![](https://cdn.shopify.com/s/files/1/0829/7493/3281/files/ollama_and_pi_5_final_images_installation.001.jpg?v=1717573597)
In the terminal window, type the following command and press Enter:
curl -fsSL https://ollama.com/install.sh | sh
This downloads the Ollama installation script and runs it automatically. The script will handle the installation process.
Note: Make sure you are using the latest Raspberry Pi OS Bookworm with 64-bit kernel + 64-bit OS. According to some users on Github, this has worked for them. Otherwise you may encounter an error: -bash: /usr/local/bin/ollama: cannot execute: required file not found
Note: Make sure you are using the latest Raspberry Pi OS Bookworm with 64-bit kernel + 64-bit OS. According to some users on Github, this has worked for them. Otherwise you may encounter an error: -bash: /usr/local/bin/ollama: cannot execute: required file not found