Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing scipy in Python 3.5 on 32-bit Windows 7 Machine

I have been trying to install Scipy onto my Python 3.5 (32-bit) install on my Windows 7 machine using the pre-built binaries from: http://www.lfd.uci.edu/~gohlke/pythonlibs

I have, in order, installed the following libraries

numpy‑1.10.1+mkl‑cp35‑none‑win32.whl
scipy‑0.16.1‑cp35‑none‑win32.whl

Then, when trying to use the installed packages I get the following erros

from scipy import sparse
< ... Complete error trace ommitted ... >
packages\scipy\sparse\csr.py", line 13, in <module>
    from ._sparsetools import csr_tocsc, csr_tobsr, csr_count_blocks, \
ImportError: DLL load failed: The specified module could not be found.

However, if i follow the same process for Python 3.4 replacing the installers with:

numpy‑1.10.1+mkl‑cp35‑none‑win32.whl
scipy‑0.16.1‑cp35‑none‑win32.whl

Everything seems to work. Are there additional dependencies or install packages that I am missing for the Python 3.5 install?

like image 250
Brian Cain Avatar asked Nov 08 '15 23:11

Brian Cain


1 Answers

Make sure you pay attention to this line from the link you provided:

Many binaries depend on NumPy-1.9+MKL and the Microsoft Visual C++ 2008 (x64, x86, and SP1 for CPython 2.6 and 2.7), Visual C++ 2010 (x64, x86, for CPython 3.3 and 3.4), or the Visual C++ 2015 (x64 and x86 for CPython 3.5) redistributable packages.

Download the corresponding Microsoft Visual C++ Redistributable Package which should be this one based on your description.

I had a similar problem, can't recall the exact issue, and I download the one for my system and it worked fine. Let me know otherwise.

like image 156
Leb Avatar answered Oct 05 '22 22:10

Leb