r5sb
Posts: 3
Joined: Sun May 29, 2016 5:46 am
Contact: Website

Not able to install Scipyi on RPi Model B

Sun May 29, 2016 6:46 am

Hey guys,

I'm trying to install the scikit-image module on my RPi Model B. It was able to install the matplotlib and numpy modules just fine but I cant get the Scipy mosule to be installed.

My current setup is:
  • RPi model B running the latest Jessie version, SD card 16gb.
  • OpenCV 3.1.0 installed on the Pi.
  • Python 2.7.9
I tried using

Code: Select all

pip install Scipy
and

Code: Select all

pip install -U scikit-image
and get the following errors Image

The main line being repeated is :
#warning "Using deprecated NumPy API, disable it by " \
^
In file included from /home/pi/.virtualenvs/cv/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:27:0,
from /home/pi/.virtualenvs/cv/local/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,
from scipy/signal/_spectral.c:242:
/home/pi/.virtualenvs/cv/local/lib/python2.7/site-packages/numpy/core/include/numpy/__multiarray_api.h:1448:1: warning: ‘_import_array’ defined but not used [-Wunused-function]
_import_array(void)
and the highlighted text in red is :
Command "/home/pi/.virtualenvs/cv/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-tsP9z5/scipy/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-LlKzFs-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/pi/.virtualenvs/cv/include/site/python2.7/scipy" failed with error code 1 in /tmp/pip-build-tsP9z5/scipy/
I then tried

Code: Select all

sudo apt-get install python-scipy
but this installs Scipy version 0.14 and I get the error:
No module named Scipy
If I run

Code: Select all

pip freeze
it gives the following output:
cycler==0.10.0
gpiozero==1.2.0
matplotlib==1.5.1
numpy==1.11.0
picamera==1.10
pyparsing==2.1.4
python-dateutil==2.5.3
pytz==2016.4
RPi.GPIO==0.6.2
six==1.10.0

I'm really not sure what I'm doing wrong here and would appreciate any help. Thanks

dgordon42
Posts: 788
Joined: Tue Aug 13, 2013 6:55 pm
Location: Dublin, Ireland

Re: Not able to install Scipyi on RPi Model B

Sun May 29, 2016 4:58 pm

r5sb wrote:No module named Scipy
Don't use the capital 'S' in python:

Code: Select all

import scipy
Hope this helps,
Dave.

Return to “Troubleshooting”