I have started working on python, and now, I want to solve real scientific problems for which SciPy is required.
I have tried to install SciPy with:
pip install scipy-0.16.0-cp34-none-win_amd64.whl
and I got message that SciPy is installed successfully. However, when I want to import SciPy the error is:
raise ImportError("Numpy OpenBLAS flavour is needed for this scipy build.")
ImportError: Numpy OpenBLAS flavour is needed for this scipy build.
I am using Windows OS, and I am using Eclipse+PyDev as an IDE. What makes this sort of problem? And how can I solve it?
Have you tried to install NumPy which is an requirement for SciPy?
You can download it here: Python Packages For Windows
Download and install the wheel for numpy with OpenBLAS from https://pypi.anaconda.org/carlkl/simple/numpy/
Related
I'm trying to set all of this up on Windows 7. This is the error I get when I try to import sklearn or scipy. I've installed sklearn and scipy using whl files. I don't remember what I used to install numpy but I can import numpy without trouble.
In my case I couldn't install scipy using pip install scipy, I finally managed to get it installed by using Scipy from here, and installing it as follows:
pip3 install scipy-0.19.0rc2-cp36-cp36m-win_amd64.whl
When I finally had scipy installed, my numpy stopped working and started giving that error. So I decided to install numpy from here:
pip3 install numpy-1.12.0+mkl-cp36-cp36m-win_amd64.whl
Make sure that you install the correct numpy for your architecture and version of Python.
I hope that helps you, cheers.
I am having a strange issue installing numpy or nltk python-modules in my windows-7 machine. I have successfully installed Python 2.7.12 but I get this error when I type pip install numpy as in this screenshot. I have also included the directory of pip.exe in the PATH. Any help would be appreciated.Thank you :)
Installing such these things in windows are sometime difficult, specially for someone new to python packages(also for some experts!)
Try to use Anaconda for windows: https://www.continuum.io/downloads#_windows
This install a python for you and many requirement packages(e.g Numpy, Scipy, Scikit and many more)
You can use older version of Anaconda, for python2.x if you want strictly python2.x
An alternative way is to download Numpy from github and then install it as a python package, that contain setup.py file
python setup.py install
Or you can download Numpy wheel package, then install it localy with pip
I want to install scipy and then theano through pip (pip install scipy) for Python 34.
But I get the following error:
failed building wheel for scipy both of the time
I have numpy installed and updated. What should I do?
I wrote an answer on installation of various packages of Python in this link : Here.
Do not attempt to install all the packages.
Just get an integrated Package (Links for download provided in the above link).
I'm trying to install scipy but when I finish installing, I can't import it. is there any GUI for easy installation? The general information:
Windows 7 - Python 2.7 - scipy 0.11.0 - I followed the steps in abel.ee.ucla.edu/cvxopt/install/index.html) for windows to install the libraries needed. I ran the setup for scipy using python setup.py install in command line and in the setup.py directory.
The error messege error link
If you are looking for a windows installer you can find one here: http://www.lfd.uci.edu/~gohlke/pythonlibs/
But as it says: These are unofficial, unsupported and you might have to reinstall numpy and everything depending on numpy from there too!
Read the instructions very careful!
I tried following the tutorial but after hours of building the ATLAS + LAPACK I got an error in the make install. I tried to download the following 4 libraries and install it still but no dice.
Currently I have installed numpy 1.3 and scipy 0.7.2 from the ubuntu repositories. I need a feature from scipy 0.9 though. Any way (preferably foolproof) I could install it?
ActivePython includes a package manager that allows you to install scipy 0.9 (among numpy, matplotlib, etc.) from PyPM.
pypm install numpy
These packages are built with ATLAS + LAPACK (Linux), veclib (OSX) or Intel MKL / ifortran (Windows).
To install Scipy 0.9, you need to have a newer Numpy installed than 1.3. The oldest Numpy that it will work with is 1.4:
https://github.com/scipy/scipy/blob/maintenance%2F0.9.x/INSTALL.txt
Hopefully upgrading your Numpy install will help!
Otherwise, I second Josh's recommendation for prepackaged distributions. I know several people who use Sage and say it is very easy to get up and running.
Where you able to install the dependencies first?
sudo apt-get install gcc g77 python-dev atlas3-base-dev
And then proceed with the installation of scipy?
I'm a big fan of the Enthought Python Distribution (EPD) to get most of my scientific libraries packaged cleanly in one place:
http://www.enthought.com/products/epd.php
It's free if you're in academia.
There are also other options like Python(x,y) and Sage:
http://code.google.com/p/pythonxy/
http://sagemath.org/
Prepackaged distributions are the closest you'll get to a foolproof way. I have built scipy/numpy from scratch before, but I can't help you without further details.