module compiled against API version 9 but this version of numpy is 6

来源:互联网 发布:数据库日志备份 编辑:程序博客网 时间:2024/05/16 01:37

今天配置OpenCV+Python+numpy的时候,配置完成后运行Opencv中的drawing.py出现如标题所示的错误提示。


分析:我选择的Python版本为2.7.5,而当时numpy的版本为1.6.3,应该是版本没对应上,numpy的版本过低了

解决办法:下载并安装了numpy-1.8.1,成功解决。


【Attention】配置OpenCV+Python+numpy的教程请看:http://blog.csdn.net/sysu_cm/article/details/36891529

0 0