RuntimeError: module compiled against API version 0xb but this version of numpy is 0xa
来源:互联网 发布:软件销售怎么样 编辑:程序博客网 时间:2024/04/30 11:24
我在运行tensorflow object detection API的demo的时候,出现了下面的错误:
whsyxt@whsyxt:~/Downloads/gaoshengwu/models/research/object_detection$ python object_detection_tutorial.py RuntimeError: module compiled against API version 0xb but this version of numpy is 0xaRuntimeError: module compiled against API version 0xb but this version of numpy is 0xaTraceback (most recent call last): File "object_detection_tutorial.py", line 17, in <module> import tensorflow as tf File "/usr/local/lib/python2.7/dist-packages/tensorflow/__init__.py", line 24, in <module> from tensorflow.python import * File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/__init__.py", line 49, in <module> from tensorflow.python import pywrap_tensorflow File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/pywrap_tensorflow.py", line 52, in <module> raise ImportError(msg)ImportError: Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/pywrap_tensorflow.py", line 41, in <module> from tensorflow.python.pywrap_tensorflow_internal import * File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 28, in <module> _pywrap_tensorflow_internal = swig_import_helper() File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 24, in swig_import_helper _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)ImportError: numpy.core.multiarray failed to importFailed to load the native TensorFlow runtime.See https://www.tensorflow.org/install/install_sources#common_installation_problemsfor some common reasons and solutions. Include the entire stack traceabove this error message when asking for help.然后我的解决办法是:
sudo pip install numpy --upgrade然后就可以完美运行啦。
参考文献
[1].How can I upgrade numpy?.https://stackoverflow.com/questions/28517937/how-can-i-upgrade-numpy
[2].RuntimeError: module compiled against API version a but this version of numpy is 9.https://github.com/Theano/Theano/issues/3623
阅读全文
0 0
- RuntimeError: module compiled against API version 0xb but this version of numpy is 0xa
- RuntimeError: module compiled against API version 0xa but this version of numpy is 0xb
- RuntimeError: module compiled against API version 0xb but this version of numpy is 0xa
- RuntimeError: module compiled against API version 0xb but this version of numpy is 0xa
- RuntimeError: module compiled against API version 0xa but this version of numpy is 0x9
- tensorflow RuntimeError: module compiled against API version 0xa but this version of numpy is 0x9问题
- MXnet: RuntimeError: module compiled against API version a but this version of numpy is 9
- Mac安装Tensorflow,运行项目报错: module compiled against API version 0xa but this version of numpy is 0x9
- module compiled against API version 9 but this version of numpy is 6
- module compiled against API version 9 but this version of numpy is 7的解决方法
- incorrect MySQL client library version! This gem was compiled for 6.0.0 but the client library is 5.
- mysql2 rails Incorrect MySQL client library version! This gem was compiled for 6.0.0 but the client
- Error: API mismatch: the NVIDIA kernel module has version 295.40, but this NVIDIA driver ...
- Version 1.7.0_121 of the JVM is not suitable for this product. Version: 1.8
- nginx: [alert] version 1.4.0 of nginx.pm is required, but 1.2.0 was found
- Version 1.4.0 of the JVM is not suitable for this product.Version:1.5.0 or greater is required
- Version 1.5.0_07 of the JVM is not suitable for this product. Version: 1.6 or greater is required.
- Version 1.6.0 of the JVM is not suitable for the this product.Version:1.8 or greater is required
- Linux下安装JDK和配置环境变量
- win7 域环境客户端启动后进入登录界面黑屏
- 织梦的channelartlist和arclist标签无法在栏目页显示软件的下载
- caffe的solver.prototxt下test_interval不同数值造成准确率的变化大
- ubuntu下samba的配置和使用
- RuntimeError: module compiled against API version 0xb but this version of numpy is 0xa
- Java基础之SPI机制
- 一致性协议
- 【Scikit-Learn 中文文档】特征选择
- mybatis自动生成工具
- “把数据保存到数据库主表 `archives` 时出错”的解决方法
- 2018年,BI大数据智能系统将继续领跑
- 1.Hadoop介绍---1
- 微信、qq、微博第三方分享集成封装代码