You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

PyCharm中使用Keras搭配TensorFlow出现报错问题求助

PyCharm中Keras 3.0.0搭配TensorFlow 2.16.1的报错解决求助
  • 环境配置:PyCharm 2023.2.6,Keras 3.0.0,TensorFlow 2.16.1
  • 问题现象:PyCharm编辑器提示报错(附报错截图),但实际运行代码无任何错误
  • 验证情况:所有相关依赖包已正确安装,Keras版本是严格按照官方兼容性矩阵选择的(附兼容性矩阵截图)

已安装的完整包列表

> pip list
Package                      Version
---------------------------- --------
absl-py                      2.1.0
astunparse                   1.6.3
certifi                      2024.2.2
charset-normalizer           3.3.2
dm-tree                      0.1.8
flatbuffers                  24.3.25
gast                         0.5.4
google-pasta                 0.2.0
grpcio                       1.62.1
h5py                         3.10.0
idna                         3.6
importlib_metadata           7.1.0
keras                        3.0.0
libclang                     18.1.1
Markdown                     3.6
markdown-it-py               3.0.0
MarkupSafe                   2.1.5
mdurl                        0.1.2
ml-dtypes                    0.3.2
namex                        0.0.7
numpy                        1.26.4
opt-einsum                   3.3.0
optree                       0.11.0
packaging                    24.0
pip                          24.0
protobuf                     4.25.3
Pygments                     2.17.2
requests                     2.31.0
rich                         13.7.1
setuptools                   68.2.0
six                          1.16.0
tensorboard                  2.16.2
tensorboard-data-server      0.7.2
tensorflow                   2.16.1
tensorflow-intel             2.16.1
tensorflow-io-gcs-filesystem 0.31.0
termcolor                    2.4.0
typing_extensions            4.10.0
urllib3                      2.2.1
Werkzeug                     3.0.2
wheel                        0.41.2
wrapt                        1.16.0
zipp                         3.18.1

现寻求解决PyCharm编辑器报错提示的方法。

内容的提问来源于stack exchange,提问作者D .Stark

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.26 10:41:34