【发布时间】:2020-07-11 10:46:41
【问题描述】:
我正在阅读"Hands-On Machine Learning with Scikit-Learn, Keras and Tensorflow"并安装Tensorflow 2如下:
$ python3 -m pip install --upgrade tensorflow
在jupyter notebook我尝试导入Tensorflow如下:
import tensorflow as tf
然后我收到以下错误消息:
The kernel appears to have died. It will restart automatically
我知道有很多关于这个主题的 StackOverflow 线程。我都读过了。有些是旧的,有些是新的。他们中的大多数建议将Tensorflow 版本降级到1.5。但是当我这样做时,我无法使用Keras API 的某些方法(例如,找不到load_data())。
有没有人找到解决方案?
【问题讨论】:
标签: python keras jupyter-notebook tensorflow2.0