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

Time:10-08

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.

CodePudding user response:

You could try installing from the sources (Reference)

To paraphrase the given link:

Clone from GitHub: $ git clone git://github.com/hbldh/bleak
Access the repo: $ cd ~/bleak (assuming you cloned at your root)
Install the source: $ python setup.py install

CodePudding user response:

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
  • Related