首页 > 其他 > 详细

导入sklearn模块出错

时间:2015-03-08 06:41:19      阅读:7748      评论:0      收藏:0      [点我收藏+]

import sklearn

报错:

Traceback (most recent call last):

File "<pyshell#1>", line 1, in <module>
import sklearn
File "D:\Python27\lib\site-packages\scikit_learn-0.15.2-py2.7-win-amd64.egg\sklearn\__init__.py", line 37, in <module>
from . import __check_build
ImportError: cannot import name __check_build

 

 

from sklearn import datasets

报错:
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
from sklearn import datasets
File "D:\Python27\lib\site-packages\scikit_learn-0.15.2-py2.7-win-amd64.egg\sklearn\__init__.py", line 38, in <module>
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 <module>
from scipy import sparse
File "D:\Python27\lib\site-packages\scipy\sparse\__init__.py", line 182, in <module>
from .csr import *
File "D:\Python27\lib\site-packages\scipy\sparse\csr.py", line 15, in <module>
from .sparsetools import csr_tocsc, csr_tobsr, csr_count_blocks, \
File "D:\Python27\lib\site-packages\scipy\sparse\sparsetools\__init__.py", line 5, in <module>
from .csr import *
File "D:\Python27\lib\site-packages\scipy\sparse\sparsetools\csr.py", line 26, in <module>
_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 应用程序。

导入sklearn模块出错

原文:http://www.cnblogs.com/wwww/p/4321262.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!