anaconda安装tensorflow和scikit-learn出现An error ocurred while starting the kernel的问题

版权声明:本文为博主原创文章,未经博主允许不得转载。https://blog.csdn.net/weixin_44474718/article/details/86218387

Win10系统 安装Anaconda+TensorFlow+Keras
参考:https://www.cnblogs.com/zeroingToOne/p/8407059.html

之后自己安装scikit-learn运行程序出现如下错误

Using TensorFlow backend.
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

尝试网上各种方法都没有效果,灵感来自于:https://blog.csdn.net/qq_22230583/article/details/83063949

大概是因为numpy的版本不对,于是
打开anaconda prompt
分别进行下面两步

1;原始环境下输入:pip install --upgrade --ignore-installed tensorflow

在这里插入图片描述
2;tensorflow环境下输入:pip install --upgrade --ignore-installed tensorflow

在这里插入图片描述

然后完美解决!!!

猜你喜欢

转载自blog.csdn.net/weixin_44474718/article/details/86218387