installing playsound in python3

4 respostas [Última entrada]
stearinljus lys
Desconectado
Joined: 06/01/2019

Hello!
I want to install playsound in python3.
I have tried:

sudo apt-get install python3-playsound

But I got following message:

E: Unable to locate package python3-playsound

I cannot install pip3 either.

What shall I do?
Thank you for answering.

stearinljus lys
Desconectado
Joined: 06/01/2019

All right!
But is there any free python packages for editing and playing sounds?

nadebula.1984
Desconectado
Joined: 05/01/2018

Python packages are not installed via dpkg package manager. On my system, I have the following packages installed:

pipenv
python-pip-whl
python3-pip

And then use the following command to install python packages:

pip3 install -U package_name

The python package will be installed in /home/username/.local/bin

However, most pypi repositories require recent versions of said packages, whereas packages in Trisquel are gravely outdated, so it's not recommend to do it on Trisquel, unless you can manually update said packages and their dependencies.

gnudev
Desconectado
Joined: 08/03/2020

Hello
You can add pip repositories in this way: (run in terminal)

curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python3 get-pip.py
pip install playsound

But (be carful)...! in pip repository there is non-free softwares...

stearinljus lys
Desconectado
Joined: 06/01/2019

Hi!
And thank you for the help.
I did as you said and managed to install both playsound and pip.
Thank as well for your warning ;)