ljp7759325
檐前潜心学种瓜
2015-03-07 17:57

python2.7安装sklearn报错:ImportError: DLL load failed

  • python
  • 安装
  • failed

import sklearn
报错:
Traceback (most recent call last):
File "", line 1, in
import sklearn
File "D:\Python27\lib\site-packages\scikit_learn-0.15.2-py2.7-win-amd64.egg\sklearn__init__.py", line 38, in
from .base import clone
File "D:\Python27\lib\site-packages\scikit_learn-0.15.2-py2.7-win-amd64.egg\sklearn\base.py", line 10, in
from scipy import sparse
File "D:\Python27\lib\site-packages\scipy\sparse__init__.py", line 182, in
from .csr import *
File "D:\Python27\lib\site-packages\scipy\sparse\csr.py", line 15, in
from .sparsetools import csr_tocsc, csr_tobsr, csr_count_blocks, \
File "D:\Python27\lib\site-packages\scipy\sparse\sparsetools__init__.py", line 5, in
from .csr import *
File "D:\Python27\lib\site-packages\scipy\sparse\sparsetools\csr.py", line 26, in
_csr = swig_import_helper()
File "D:\Python27\lib\site-packages\scipy\sparse\sparsetools\csr.py", line 22, in swig_import_helper
_mod = imp.load_module('_csr', fp, pathname, description)
ImportError: DLL load failed: %1 不是有效的 Win32 应用程序。

用的python2.7.9,我已经安装了numpy1.9.1,scipy0.12.0,sklearn0.15.1,这些都是支持64位系统的,遇到这个问题我该怎么办

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

2条回答