import tensorflow 出现RuntimeError

mac2022-06-30  15

import tensorflow

RuntimeError: module compiled against API version 0xc but this version of numpy is 0xbImportError: numpy.core.multiarray failed to importImportError: numpy.core.umath failed to importImportError: numpy.core.umath failed to import

 

1.错误原因

numpy版本未能达到tensorflow的要求,造成API链接错误

2. 解决方法

升级numpy版本

pip3 install numpy --upgrade

转载于:https://www.cnblogs.com/wfsh-hebau/p/9956103.html

最新回复(0)