ImportError: DLL load failed: %1 不是有效的 Win32 应用程序。

from matplotlib import pyplot as plt
from sklearn.datasets import load_iris
import numpy as np

data=load_iris()
feature_names=data['featrue_names']
target=data['target']
for t.marker,c in zip(xrange(3),">ox","rgb"):
    plt.scatter(feature[target==t,0],
    feature[target==t,1],
    marker=marker,
    c=c)

运行报错:

Traceback (most recent call last):
File "D:/Python27/data_iris.py", line 2, in <module>
from sklearn.datasets import load_iris
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 应用程序。

转载于:https://www.cnblogs.com/wwww/p/4321031.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值