最近在运行一个Python项目的时候,报错RuntimeError: module compiled against API version 0xf but this version of numpy is 0xd导致项目无法运行,查阅资料后发现是numpy这个包版本太低导致的,解决方法是升级numpy版本。方法贴在这里,供遇到同样问题的小伙伴参考。
解决 RuntimeError: module compiled against API version 0xf but this version of numpy is 0xd
背景最近在运行一个Python项目的时候,报错RuntimeError: module compiled against API version 0xf but this version of numpy is 0xd导致项目无法运行,查阅资料后发现是numpy这个包版本太低导致的,解决方法是升级numpy版本,方法贴在这里,供遇到同样问题的小伙伴参考。解决方法$ pip install numpy --upgrade参考资料1参考资料2...