How to install scipy on windows 10?

I have windows 10 and am trying to install scipy. Currently I 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 an 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 an 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?

+6
source share
1 answer

It is not scipy you tring to install this

(unstable), C-package for solving large-scale convex cone problems. Numpy + mkl required ..

on Windows 64 bit to install scipy use Unofficial Windows binaries for Python expansion packs to avoid errors that you can download .whl file from Scipy it name scipy-0.18.1-cp27-cp27m-win_amd64.whl , then go to the folder file download using cmd:

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

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

+12
source

Source: https://habr.com/ru/post/1011709/


All Articles