I have Scipy version 0.18.2 on my RaspberryPi 3. However, I need the find_peaks() function which is only available on higher versions.

I followed this link to install scipy.

But the python3 setup.py build pauses here:

warning: #warning "Using deprecated NumPy API, disable it by " 
#warning "Using deprecated NumPy API, disable it by " \

I'm working on latest version of numpy(1.15.4).

Any other inputs on how to implement scipy's find_peaks() would also be helpful.

Thanks in advance!

  • 1
    If you're using Raspbian Stretch (using RPF image) you should get 1.2 with pip3: sudo pip3 install scipy. This will install using a binary wheel from piwheels. Don't use sudo if you're in a virtual environment – Dirk Jan 2 at 16:17
  • Thanks for your response. Pip doesn't seem to work.. I am using pip behind a proxy I've tried the answer (stackoverflow.com/questions/14149422/using-pip-behind-a-proxy) with 228 upvotes . It gives me this error for any pip command. >>>TypeError: unsupported operand type(s) for -=: 'Retry' and 'int' – Vrushank V Jan 3 at 7:46
  • AFAIK you just need a newer version of requests/pip. I would uninstall python3-pip and then use pip.pypa.io/en/stable/installing/#installing-with-get-pip-py . Make sure to use sudo python3 get-pip.py to install pip. – Dirk Jan 3 at 8:23
  • when do sudo python3 get-pip.py .. It says "retrying" a lot of times and ends with this error --> "Could not find a version that satisfies the requirement pip (from versions: ) No matching distribution found for pip" – Vrushank V Jan 4 at 11:24

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.