Hot answers tagged

16 votes

Can't install PyBluez

Finally found an answer to the issue. Need to do the following to get pybluez installed on Raspberry Pi 3 sudo apt-get install libbluetooth-dev sudo apt-get install python-dev sudo pip install ...
user avatar
  • 161
15 votes

How to install latest Scipy version on Raspberry Pi

TL;DR: skip to the last paragraph to know how to increase swap space and avoid memory clogging. Also, don't use pip for numpy and scipy. To get the latest version of scipy on the raspberry Pi you ...
user avatar
  • 155
10 votes

Can't install lxml

The error you are reporting is the result of missing requirements. Per the lxml install instructions, the simplest method of installing it is: sudo apt-get install python3-lxml python-lxml You may ...
user avatar
9 votes

How do I install pandas on Raspberry Pi?

sudo apt-get install python3-pandas works on the Raspberry Pi4 and the pandas version is 0.23.3.
user avatar
8 votes
Accepted

Installing libraries via pip is taking forever. Raspberry pi 3b+

Building scipy from source takes about 1hr20. Pre-compiled wheels are available from piwheels.org, so you can install it from there without building yourself. Raspbian Stretch is pre-configured to ...
user avatar
  • 2,371
8 votes
Accepted

Error installing RPi.GPIO in virtual environment

It looks like the latest release does not support Python 3.9 but the alpha releases do: https://www.piwheels.org/project/RPi.GPIO/ You can install the alpha version with: pip install rpi-gpio --pre
user avatar
  • 2,371
6 votes

How to install latest Scipy version on Raspberry Pi

Install using a wheels for pi. It may not be the very latest scipy but it's quite up to date. update pip: pip install pip --upgrade (or pip3, adapt to your python version) go to https://www.piwheels....
user avatar
6 votes
Accepted

Error Installing TensorFlow on Rasperry Pi 3 B

Okay, I have solved my problem. I reinstalled Python 3.6. Then I used this command sudo apt-get install libhdf5-dev and then sudo pip install tensorflow and installed TensorFlow successfully! I ...
user avatar
5 votes
Accepted

How to install radicale (CardDAV & CalDAV) on a headless RaspberryPi?

Most of this is from the Radicale installation instruction, but I had some troubles getting it right due to some minor things. Also, this is a good practice for setting up a systemd service and using ...
user avatar
  • 249
4 votes

pip not working Jessie Raspberry Pi2

I got exactly the same problem with Raspbian Jessie Lite image. Incredibly I've solved this problem by setting the correct time and date as explained in Broken Python PIP install; What is the correct ...
user avatar
  • 41
4 votes
Accepted

Pip3 install throwing error on raspberry pi 3 Raspbian-Jessie

From the error log, it seems to be an issue with the SSL protocol being used: File "/usr/lib/python3/dist-packages/OpenSSL/SSL.py", line 1149, in _raise_ssl_error raise WantReadError() OpenSSL....
user avatar
  • 156
3 votes

Failed RPi.GPIO installation on OS X

At first I didn't understand that the RPi library requires all this stuff that is particular to the Raspberry Pi environment (and is not expected to work on a dev environment say if you're working on ...
user avatar
3 votes
Accepted

Pip exception while installing matplotlib on raspberry pi

I researched a little more an I solved it by using pip install --no-cache-dir matplotlib
user avatar
3 votes

smbus Import Error

Sounds like you are only downloading modules and not installing them. Here's how to do it. Installing pip: sudo apt-get install python-pip python3-pip Installing smbus: sudo apt-get install python-...
user avatar
  • 3,322
3 votes

Problems in upgrading pip packages

Three Suggestions Use Virtualenv for development and custom applications, System python is for installed programs System python is better suited for system utilities which are built against the ...
user avatar
  • 2,895
3 votes
Accepted

Pip error trying to get gphoto lib

The line: Command '['pkg-config', '--modversion', 'libgphoto2']' returned non-zero exit status 1 indicates something went wrong when the script tried to run pkg-config --modversion libgphoto2 on ...
user avatar
  • 6,198
3 votes

Got compilation error when installing plyvel

Since plyvel 1.0.0, the minimum leveldb version is 1.20. You're using an older version. See the version history for details: https://plyvel.readthedocs.io/en/latest/news.html#plyvel-1-0-0
user avatar
3 votes
Accepted

Unable to pip install librosa in raspberry pi 3 model b+ (Raspbian stretch)

The issue here is with numba, as you'll see with the last two lines of the trace: File "/home/pi/.local/lib/python3.5/site-packages/numba/targets/base.py", line 17, in <module> ...
user avatar
  • 203
2 votes

How to install latest Scipy version on Raspberry Pi

I managed to install scipy with "pip install scipy", after many attempts, by increasing swap size to 2048 on a Raspberry 4 with 2 Gb.
user avatar
2 votes
Accepted

Broken Python PIP install; What is the correct way to fix?

The problem was that my time was inaccurate. It was in the past a number of months, so none of the SSL certs would verify. The time wasn't updating automatically because I'm behind a firewall which is ...
user avatar
  • 171
2 votes

Getting multiple errors while Installing Scipy

It seems as if your problem is that you are running old packages and modules please update your pi using the following commands: sudo apt-get update sudo apt-get upgrade and tell me if it solves ...
user avatar
  • 2,338
2 votes

Error while using IMAPClient "ImportError : No module named imapclient"

Try sudo pip install imapclient
user avatar
2 votes

Unable to install SimpleCV on Raspberry Pi 3

I succeed running SimpleCV on RPi3 without updating os from RPi2. I just installed like following steps. mkdir ~/Code cd ~/Code git clone git://github.com/sightmachine/SimpleCV.git cd SimpleCV sudo ...
user avatar
2 votes

Pip exception while installing matplotlib on raspberry pi

Like @jacob suggested pip install --no-cache-dir matplotlib helped to avoid the out of memory error. However, matplotlib did not build because 'libpng' is not available on the raspberry and cannot ...
user avatar
  • 121
2 votes
Accepted

Error updating oauth2client with pip install --upgrade

I tried to install the package in my Raspberry pi 2 B+. pi@raspberrypi:/tmp/mytest $ sudo pip install --upgrade oauth2client Requirement already up-to-date: oauth2client in /usr/local/lib/...
user avatar
  • 848
2 votes

Installing cryptography using pip on Raspbian Jessie image

I found the following commands were sufficient to fix my Raspbian Jessie install where Kodi was giving an error message about the old version of Python Cryptography. sudo apt-get update sudo apt-...
user avatar
2 votes
Accepted

Installing cryptography using pip on Raspbian Jessie image

Re-installing pip seems to have fixed it. Thanks to goobering's link in his comment. I downloaded get-pip.py from this section of the python website, then from terminal run sudo python get-pip.py. ...
user avatar
2 votes

pip3 installs to wrong directory

pip3 is being run with python2.7 I found this stack overflow answer which might pertain to this situation. Summary Basically, /usr/local/pip3 has the #!/usr/bin/python shebang as its first line, ...
user avatar
  • 1,786
2 votes

How can I install numpy and pandapower?

By default, Jessie Lite for Raspberry Pi have python 2.7 installed but does not have pip/setuptools/wheel installed. To install pip, run: sudo apt-get install python-pip This will install setup ...
user avatar
  • 805
2 votes

pip install flask not working

Looks like you are running pip as an unprivileged user. You can either do sudo pip install flask to install it as root for everyone, or pip install --user flask to install it just for the current ...
user avatar
  • 1,283

Only top scored, non community-wiki answers of a minimum length are eligible