我的电脑里安装了水蟒。我已经在里面安装了tensorflow的所有模块。我试图从jupyter笔记本导入tensorflow,但我得到以下错误。在
---------------------------------------------------------------------------
RuntimeError Traceback (most recent call last)
RuntimeError: module compiled against API version 0xb but this version of numpy is 0xa
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
ImportError: numpy.core.multiarray failed to import
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
ImportError: numpy.core.umath failed to import
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
ImportError: numpy.core.umath failed to import
有人能帮我解决这个错误吗?在
更新numpy库时出错。在
我用following命令升级了numpy
问题解决了。在
从回溯来看,由于当前版本的numpy与Tensorflow不兼容,因此会引发导入错误。更新numpy包应该可以解决这个问题。在
在Python提示中尝试以下操作:
有用链接:
http://cs.franklin.edu/~ansaria/traceback.html
https://conda.io/docs/commands/conda-update.html
相关问题 更多 >
编程相关推荐