Problem to install Scipy

Asked

Viewed 519 times

2

People I’m having trouble installing the scipy for pycharm and by Pip, I am taking the following considerations when installing the SciPy

1 - Is compatible with python 3.6
2 - On Pip type the command "pip install scipy"
3 - All other scientific libraries I tried to install were error ( and I believe it is related to scipy)

The error is as follows:

1 - Failed building wheel for scipy
2 - Failed Cleaning build dir for scipy
3 - Error code 1

In short, I need to use the library "control 0.7.0" for the college to plot some charts, but it is also giving error, I wonder if this problem related libraries are particularities of her or I am missing something? What should I take into account when installing a module? The problem may be with Pip?

1 answer

2

Good evening. You haven’t said which operating system you are using. If you are using the Windows, take into account that the scipy cannot be installed via pip, because it does not have all the necessary libraries. If you are using the windows try to install from the binaries of this page: http://www.lfd.uci.edu/~gohlke/pythonlibs/#scipy (Before installing the numpy http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy). These binaries can be installed via pip and wheels. Save the files in a directory and do it on prompt:

pip install wheel

pip wheel --wheel-dir=/diretorio/aonde-salvou-binarios -r requirements.txt

pip install --no-index --find-links=/diretorio/aonde-salvou-binarios -r requirements.txt

If you are using mac or linux try to update the Pip version:

python -m pip install --upgrade pip

then install the packages

pip install --user numpy scipy matplotlib ipython jupyter pandas sympy nose
  • Thank you very much for your help but the wheel didn’t work either, so I found the following video https://www.youtube.com/watch?v=SrRh1V1Z748on youtube

Browser other questions tagged

You are not signed in. Login or sign up in order to post.