我可以在命令提示符下导入scipy,但是当我运行脚本时{DLL}加载失败

时间:2017-01-04 21:39:42

标签: python numpy

Windows 7 Python 2.7

当我在命令提示符下导入scipy时,一切都按预期工作:

Python 2.7.12 |Anaconda 4.2.0 (32-bit)| (default, Jun 29 2016, 11:42:13)        [MSC v.
1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
Anaconda is brought to you by Continuum Analytics.
Please check out: http://continuum.io/thanks and https://anaconda.org
>>> from scipy.stats import norm

当我运行脚本时,scipy有一个DLL问题:

  from scipy.stats import norm
  File "C:\Python27\lib\site-packages\scipy\stats\__init__.py", line 344, in <module>
  from .stats import *
  File "C:\Python27\lib\site-packages\scipy\stats\stats.py", line 173, in <module>
  import scipy.special as special
  File "C:\Python27\lib\site-packages\scipy\special\__init__.py", line 636, in <module>
  from ._ufuncs import *
  ImportError: DLL load failed: %1 is not a valid Win32 application.

提前感谢任何建议。

0 个答案:

没有答案