Install Pyradio on Ubuntu 20.04 - A step by step process ?

Written in Python, Pyradio is a free and convenient command-line application for streaming internet radio straight from your Linux console. With Pyradio, you can play, edit, add and switch between your preferred list of online radio stations. Pyradio uses MPlayer for playback by default and runs not only on Linux but Windows, Mac and even Raspberry Pi.

Here at LinuxAPT, as part of our Server Management Services, we regularly help our Customers to perform related Linux Software Installation queries.

In this context, we shall look into how you can install Pyradio on Ubuntu 20.04.

Different ways of installing Pyradio on Ubuntu

You can install from snap packages or compile from source.

To install Pyradio, ensure you have the following set of prerequisites:

  • MPlayer or VLC media player: Run the command, $ sudo snap install VLC
  • Pip package manager: Run the command, $ sudo apt install python3-pip

1. Install Pyradio from Snap

Installing Pyradio from snap is quite a straightforward process. By default, Ubuntu 18.04 and later versions come with snapd daemon already installed. Snapd is a daemon that usually handles snap packages.

If, for whatever reason, snapd is not present install it using the command:

$ sudo apt update
$ sudo apt install snapd

Next, install Pyradio from snap with the below command:

$ sudo snap install pyradio

2. Install Pyradio from source code

The other approach is to build Pyradio from source code. To accomplish this, we are going to clone Pyradio's git repository:

$ git clone

Next, navigate into the cloned folder:

$ cd pyradio

Then build from source with the below command:

$ sudo python3 build

Once the build process is complete, run the following command to complete the installation from source:

$ sudo python3 install

Once done, you can verify the version of Pyradio installed with the below command:

$ pyradio --version

How to Launch Pyradio ?

To launch Pyradio, head over to the console or terminal and switch to root user. Then execute the command:

# pyradio --play

This opens a console-based interface with a list of available online radio stations that you can listen to. Feel free to scroll through and press 'ENTER' to select your online radio station of choice.

To get a list of available command-line options, run the pyradio command with the -h option:

$ pyradio -h

[Need assistance in installing any Software on your Linux system ? We can help you. ]

This article covers methods to install and use Pyradio on your Ubuntu Linux system as well as in all major Linux distributions. In fact, Pyradio provides an array of radio stations in a wide variety of music genres that will offer a much-needed change from your music collection.

For more information about Pyradio including installation on other computing platforms and command-line controls, visit the Pyradio Github page.

Related Posts