8

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?

7
  • 1
    To install Scipy from the link you provided you need numpy+mkl which can be found here. You said you have numpy but are you sure you have mkl? Commented Oct 26, 2016 at 8:33
  • @DavidG he downloaded wrong package why you down voted !! answer Commented Oct 26, 2016 at 8:38
  • @HishamKaram It was not me who downvoted Commented Oct 26, 2016 at 8:39
  • @DavidG okay thank you Commented Oct 26, 2016 at 8:40
  • 3
    I was getting that error becuase i already had numpy. So i uninstalled it and then again installed numpy+mkl. That worked. :) Commented Oct 26, 2016 at 9:34

2 Answers 2

13

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

Sign up to request clarification or add additional context in comments.

8 Comments

I have mentioned in my question that i downloaded whl file of scipy from this link but it gave the error mentioned above.
this is not scipy you are trying to install you downloaded wrong file @KanikaRawat visit link in answer to download the correct one
Which file should i download then?
it's name scipy-0.18.1-cp27-cp27m-win_amd64.whl @KanikaRawat
Yes you were right. But i got this error no module named numpy+mkl.
|
0

One missing part of the answers above is the install of numpy+mkl. If not installed, many of scipy functionnalities will fail in windows. Best and easy way is :

Download Wheels from https://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy pip install numpy+mkl.whl pip install scipy.whl 

Then, error in scipy related to dll missing disappears and scipy is usable.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.