5

I have already checked the similar questions, but no one helped. I have successfully installed scipy 0.17.0 wheel provided by Christoph Gohlke on my Python 3.4 Win64 bit. When I import scipy, it works, but it does not work with the optimize, integrate, .... the other modules. I get this error

import numpy as np
from scipy import optimize

>>>  Traceback (most recent call last):
File "C:\Users\uqeirann\Desktop\test.py", line 3, in <module>
from scipy import integrate
File "C:\Python34\lib\site-packages\scipy\integrate\__init__.py", line 55, in <module>
from .quadrature import *
File "C:\Python34\lib\site-packages\scipy\integrate\quadrature.py", line 10, in <module>
from scipy.special.orthogonal import p_roots
File "C:\Python34\lib\site-packages\scipy\special\__init__.py", line 627, in <module>
from ._ufuncs import *
ImportError: DLL load failed: The specified module could not be found.

The version of my windows in 10, 64 bit and version of Python also 3.4 64 bit The version of scipy also is 64 bit. So, the problem is not related to the inconsistency, in the installed folder scipy, there are also optimize folder and the other modules. I rebooted my computer for several times, and also reinstalled scipy, didn't solve! I run pywin32, the lates version, didn't help!

I really need your prompt help

elnaz irannezhad
  • 319
  • 2
  • 3
  • 12

2 Answers2

3

IME, Anaconda is the way to go if you need to get scipy etc. up & running quickly on a Windows machine

Nathan Smith
  • 475
  • 4
  • 12
  • I have similar error after today update: mkl: 11.3.1-0 --> 11.3.3-0 mkl-service: 1.1.2-py27_0 --> 1.1.2-py27_1 numexpr: 2.5.1-np110py27_0 --> 2.5.2-np110py27_1 numpy: 1.10.4-py27_0 --> 1.10.4-py27_2 scikit-learn: 0.16.1-np110py27_0 --> 0.17.1-np110py27_1 scipy: 0.17.0-np110py27_0 --> 0.17.0-np110py27_4 – Sklavit May 18 '16 at 13:17
  • Doesn't work for me on Anaconda/Windows – Johan Jan 26 '18 at 14:58
3

It's failing to import:

from ._ufuncs import *

, because it lacks the necessary Numpy dependencies. In Christoph Gohlke site you'll find the note:

SciPy is software for mathematics, science, and engineering.
       Requires numpy+mkl.

I believe if you install all necessary dependencies (probably the one I've mentioned above is enough) it should work.

armatita
  • 12,825
  • 8
  • 48
  • 49
  • I had installed the above numpy+mkl. I solved my problem with migrating to Anaconda as Nathan Smith said – elnaz irannezhad Apr 05 '16 at 00:26
  • It's important that you install the numpy+mkl from the website of Christoph Gohlke, e.g. download the package and install it with `pip install [path to package]`, and not just with `pip install mkl`. – MikeSchneeberger Oct 31 '21 at 13:26