针对API版本编译的模块

时间:2018-11-26 18:46:21

标签: python

我尝试在Rasa上运行a python project,但出乎意料的是,我遇到了两个使我感到困惑的错误:一些failed to import消息,因为module compiled against API vesion和其他Python has stopped working。这是我第一次使用Windows进行编码。我做错什么了吗?

(cha_env36) C:\Users\antoi\Documents\Programming\Nathalie\Chatbot_RASA_room_reservation>python run_app.py
RuntimeError: module compiled against API version 0xc but this version of numpy is 0xb
ImportError: numpy.core.multiarray failed to import
ImportError: numpy.core.umath failed to import
ImportError: numpy.core.umath failed to import
2018-11-26 19:35:40.214152: F tensorflow/python/lib/core/bfloat16.cc:675] Check failed: PyBfloat16_Type.tp_base != nullptr

enter image description here

1 个答案:

答案 0 :(得分:1)

您使用什么版本的numpypandas? 我认为问题的根源在于您当前的numpy==1.13.0pandas==0.21.0安装的不兼容。在我的情况下有效:

$ pip install --upgrade numpy
$ pip install pandas==0.21.0
相关问题