Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install scipy on windows 10?

Tags:

python

I have windows 10 and i am trying to install scipy. Presently, I have tried pip, but it gave an error

Command "c:\python27\python.exe -u -c "import setuptools, tokenize;__file__='c:\\users\\kanika\\appdata\\local\\temp\\pip-build-4jzyxl\\scipy\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().repl

Then i downloaded scs-1.2.6-cp27-cp27m-win_amd64 from http://www.lfd.uci.edu/~gohlke/pythonlibs/ and tried to run this pip install scs-1.2.6-cp27-cp27m-win_amd64 but still got error

Could not find a version that satisfies the requirement scs-1.2.6-cp27-cp27m-win_amd64 (from versions: )
No matching distribution found for scs-1.2.6-cp27-cp27m-win_amd64

How can i install scipy? I have numpy

Update 1-: I was able to install scipy but now i got error -:

No module named numpy+mkl

So i downloaded numpy-1.11.2+mkl-cp27-cp27m-win_amd64.whl from the same link. But i get this error-:

Invalid requirement: 'numpy-1.11.2+mkl-cp27-cp27m-win_amd64'
Traceback (most recent call last):
  File "c:\python27\lib\site-packages\pip\req\req_install.py", line 78, in __init__
    req = Requirement(req)
  File "c:\python27\lib\site-packages\pip\_vendor\packaging\requirements.py", line 96, in __init__
    requirement_string[e.loc:e.loc + 8]))
InvalidRequirement: Invalid requirement, parse error at "'+mkl-cp2'"

Why am i getting this error?

like image 248
Kanika Rawat Avatar asked Oct 26 '16 08:10

Kanika Rawat


People also ask

What is pip install SciPy?

With pip or Anaconda's conda, you can control the package versions for a specific project to prevent conflicts. Conda also controls non-Python packages, like MKL or HDF5. System package managers, like apt-get , install across the entire computer, often have older versions, and don't have as many available versions.

How do I download SciPy library?

Before working with SciPy, it should be installed in the system. We can install the SciPy library by using pip command; run the following command in the terminal: pip install scipy.


1 Answers

this is not scipy you are tring to install this is

(unstable), a C package for solving large-scale convex cone problems. Requires numpy+mkl..

on windows 64 bit to install scipy use Unofficial Windows Binaries for Python Extension Packages to avoid errors you can download .whl file from Scipy it's name scipy-0.18.1-cp27-cp27m-win_amd64.whl then go to download location of file using cmd the type :

pip install scipy-0.18.1-cp27-cp27m-win_amd64.whl

to solve the new error download Numpy+MKL from here file name is numpy-1.11.2+mkl-cp27-cp27m-win_amd64.whl

like image 149
Hisham Karam Avatar answered Oct 08 '22 08:10

Hisham Karam