- Preface
- Take care of your PATH
- Install a media player
- Get the installation script
- Debian and derivatives
- Fedora and derivatives
- openSUSE and derivatives
[ Return to PyRadio Build Instructions ]
This document will help you install PyRadio within your .local directory, using pip
.
In order to install PyRadio to your system you will:
- Take care of your PATH
- Install a media player
- Download the installation script
- Install the basic python system and PyRadio dependencies
- Perform the installation
PyRadio will be installed in the ~/.local/bin directory.
Please make sure this directory is in your PATH shell variable. The way to do this depends on the default shell you are using; please refer to its documentation on how to edit your PATH.
PyRadio relies on the existence of at least one of the following media players: mpv, mplayer or vlc.
Please install at least one of them beforehand:
# on Debian
sudo apt-get install [ mpv / mplayer / vlc ]
# on Fedora
sudo dnf install [ mpv / mplayer / vlc ]
# on openSUSE
sudo zypper install [ mpv / mplayer / vlc ]
Open a terminal and execute:
cd
wget https://raw.githubusercontent.com/coderholic/pyradio/master/pyradio/install.py
or using curl:
cd
curl -L \
https://raw.githubusercontent.com/coderholic/pyradio/master/pyradio/install.py \
-o install.py
If you are going to use Python 2, please execute:
sed -i.orig 's/from rich import print/pass/' install.py
This will fix the instllation script for Python 2; the original script will be renamed to install.py.orig.
Please follow the instructions that match/suit your distribution.
Note: The following instructions were tested on a freshly installed Debian Testing.
Install the requirements for the installation script:
sudo apt-get install \
python3-full \
python3-pip \
python3-rich \
python3-requests \
python3-dnspython \
python3-psutil \
python3-netifaces \
python3-dateutil
cd
python3 install.py
Note: The following instructions were tested on a freshly installed Fedora 38 Workstation.
Execute:
sudo dnf install \
python3-pip \
python3-wheel \
python3-rich \
python3-requests \
python3-netifaces \
python3-psutil \
python3-dns \
python3-dateutil
cd
python install.py
Note: The following instructions were tested on a freshly installed openSUSE Tumbleweed 20230427.
Execute:
sudo zypper install \
python310-requests \
python310-rich \
python3-psutil \
python3-dnspython \
python3-dateutil \
python3-netifaces
cd
python3 install.py