Search code examples
pythonlinuxraspberry-pibluetooth-lowenergy

Getting an error when trying to download a Python package on Linux


I want to use the 'bleak' package on a raspberry bi to connect to Bluetooth Low Energy peripherals. When I use the command pip install bleak i get the error :

Could not find a version that satisfies the requirement dbus-next; platform_system == "Linux" (from bleak) (from versions: ) No matching distribution found for dbus-next; platform_system ++ "Linux" (from bleak)

It is stated on their website that they do support Linux platforms.

I tried to download the package on my Macbook where it installed wihtout any problems.

Any help for what that error message means exactly? Thank you in advance.


Solution

  • Maybe you're using a wrong version of pip , try pip3 install bleak. if it didn't work edit your post with the outputs of these commands:

    which python
    which pip