Install scipy in Python 3.5 on a 32-bit Windows 7 machine

I am trying to install Scipy on my Python 3.5 installation (32-bit) on my Windows 7 machine using pre-created binaries: http://www.lfd.uci.edu/~gohlke/pythonlibs

I have to install the following libraries

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

Then, 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:

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

Everything works. Are there any additional dependencies or packages that I’m missing for installing Python 3.5?

+7
python numpy scipy
source share
4 answers

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

Many binaries depend on NumPy-1.9 + MKL and 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 Visual C + 2015 (x64 and x86 for CPython 3.5) redistributable packages.

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

I had a similar problem, I can’t remember the exact problem, and I download it for my system, and it worked perfectly. Tell me otherwise.

+12
source share

Perhaps useful: try installing pip scipy-0.18.0rc2-cp35-cp35m-win_amd64.whl (downloaded from http://www.lfd.uci.edu/~gohlke/pythonlibs/ ) on 64-bit Windows 7 with Python error 3.5 with the error "file does not exist / is not a valid wheel file name".

From various tips obtained here and elsewhere, I found that renaming the file: scipy-0.16.1-cp35-none-win_amd64.whl allowed him to install.

+3
source share

Raise the command window (find it in the start button), then enter

 pip install numpy 

and

 pip install scipy‑0.16.1‑cp35‑none‑win32.whl 

then it should tell you in the command window if it was successfully loaded, if you have python 3.5.

+1
source share

I had a question that turned out to be a duplicate here:

ImportError: DLL loading failed: importing statsmodels

I really solved this and other issues related to installing packages (e.g. statsmodels) using the Anaconda installer for Python 3.5.

0
source share

All Articles