Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

scipy.optimize dll load failure on Windows 8

I am attempting to import scipy.optimize using Python 3.3.1 on Windows 8. I am using scipy-0.12.0. When I attempt to import, Python returns the following error:

>>> import scipy.optimize
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Python33\lib\site-packages\scipy\optimize\__init__.py", line 146, in
<module>
    from .optimize import *
  File "C:\Python33\lib\site-packages\scipy\optimize\optimize.py", line 34, in <
module>
    from .linesearch import \
  File "C:\Python33\lib\site-packages\scipy\optimize\linesearch.py", line 16, in
 <module>
    from scipy.optimize import minpack2
ImportError: DLL load failed: The specified module could not be found.

I believe this is an operating system error because importing scipy.optimize succeeds when using the same version of Python and scipy on a Windows 7 machine.

I would greatly appreciate any assistance.

Thanks.

like image 281
user2619930 Avatar asked Jul 25 '13 21:07

user2619930


1 Answers

It may be a problem with using an incompatible version of Numpy. We solved this problem on a computer at work by using a Numpy-MKL build from Christoph Gohlke's website. This solved our problems on Windows 8 computers, because the builds for Scipy from his website require the Numpy MKL build.

like image 56
Cody Piersall Avatar answered Oct 13 '22 21:10

Cody Piersall