import scipy.sparse failed

My python is 3.5.1 (32-bit) at Win7 (32-bit). I've installed 'scipy-0.16.1-cp35-none-win32.whl' and 'numpy-1.10.2+mkl-cp35-none-win32.whl' downloaded form http://www.lfd.uci.edu/~gohlke/pythonlibs/. And the scipy model can be imported correctly as below:

import scipy

But I get the errors when importing scipy.sparse:

>>> import scipy.sparse Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Users\Administrator\AppData\Local\Programs\Python\Python35-32\lib\site-packages\scipy\sparse\__init__.py", line 213, in <module> from .csr import * File "C:\Users\Administrator\AppData\Local\Programs\Python\Python35-32\lib\site-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.

And I got the error below by installing scipy by pip:

pip install scipy

Command "c:\users\administrator\appdata\local\programs\python\python35-32\python.exe -c \ """import setuptools, tokenize; __file__='C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\pip-build-qzcp2rwj\\scipy\\s‌​etup.py'; exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))""" \ install --record C:\Users\ADMINI~1\AppData\Local\Temp\pip-lyz7f9x_-record\install-record.txt \ --single-version-externally-managed --compile" failed with error code 1 in C:\Users\ADMINI~1\AppData\Local\Temp\pip-build-qzcp2rwj\scipy

How can I correctly import scipy.sparse?


Fixed this issue by installing python 3.4 and 3.4 dependencies from http://www.lfd.uci.edu/~gohlke/pythonlibs/. It seems the error only reproduced by python 3.5 environment.

The correct environment configurations are:

    <li>OS: Win7 (32-bit)</li> <li>Python 3.4.3 (v3.4.3:9b73f1c3e601, Feb 24 2015, 22:43:06) [MSC v.1600 32 bit (Intel)] on win32</li> <li>scipy-0.17.0rc1-cp34-none-win32.whl</li> <li>numpy-1.10.2+mkl-cp34-none-win32.whl</li> </ul>


  • Error: Program “make” not found in PATH
  • Get/Set “File History” (Windows 8) settings using C#
  • Vagrant rsync error: Error: Could not create directory '/home/Eric/.ssh'
  • Set attribute to all types in XML Schema
  • Visual studio alerts workspace already exists
  • Netezza Incremental load from Sql server using SSIS
  • pymongo replication secondary readreference not work
  • Java Application vs. Java Desktop Application in Netbeans [duplicate]
  • HttpListener.IsSupported is false on XP SP3
  • During installation of Django, why do I keep getting ImportError: No module named django?
  • where do I find the xml.dom python package for the python-2.6.0-8.9.28 and I have a suse/x86_64 vers
  • Python pickle not one-to-one: different pickles give same object
  • Differences in dis-assembled C code of GCC and Borland?
  • Android application: how to use the camera and grab the image bytes?
  • ADO and msqli connections very slow
  • How do I exclude a dependency in provided scope when running in Maven test scope?
  • How do I access an unhandled exception in an MVC Error view?
  • Is there a perl module to validate passwords stored in “{crypt}hashedpassword” “{ssha}hashedpassword
  • PHP buffered output depending on server setting?
  • Meteor helpers not available in Angular template
  • How to make a tree having multiple type of nodes and each node can have multiple child nodes in java
  • Cassandra Data Model
  • How can I estimate amount of memory left with calling System.gc()?
  • Codeigniter doesn't let me update entry, because some fields must be unique
  • using HTMLImports.whenReady not working in chrome
  • Change div Background jquery
  • How does Linux kernel interrupt the application?
  • How to get Windows thread pool to call class member function?
  • Bitwise OR returns boolean when one of operands is nil
  • Are Kotlin's Float, Int etc optimised to built-in types in the JVM? [duplicate]
  • XCode 8, some methods disappeared ? ex: layoutAttributesClass() -> AnyClass
  • Easiest way to encapsulate a HTML5 webpage into an android app?
  • Busy indicator not showing up in wpf window [duplicate]
  • How to get NHibernate ISession to cache entity not retrieved by primary key
  • costura.fody for a dll that references another dll
  • Observable and ngFor in Angular 2
  • How to Embed XSL into XML
  • UserPrincipal.Current returns apppool on IIS
  • Conditional In-Line CSS for IE and Others?
  • Why do underscore prefixed variables exist?