gpt4 book ai didi

python - 模块未找到错误: No module named 'tensorflow' while installing Keras for anaconda3

转载 作者:太空宇宙 更新时间:2023-11-03 21:14:16 24 4
gpt4 key购买 nike

安装“Keras”库(pip install keras)后,当我尝试在 jupyter Notebook 中导入 keras 时,出现错误 ModuleNotFoundError: No module named 'tensorflow'。请建议解决方法。似乎是一个已知问题,但无法得到任何正确答案

最佳答案

kerastensorflow 是单独的软件包,Keras 作为库不依赖于 tensorflow。如果您想将 Keras 与 Tensorflow 结合使用,还需要安装 tensorflow:

pip install keras tensorflow

关于python - 模块未找到错误: No module named 'tensorflow' while installing Keras for anaconda3,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54835355/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com