我在python中导入tensorflow时收到一条消息

2024-09-30 04:28:34 发布

您现在位置:Python中文网/ 问答频道 /正文

当我在Python中导入tensorflow时,我得到以下错误:

C:\Users\Sathsara\Anaconda3\envs\tensorflow\Lib\site-packages\h5py__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype from float to np.floating is deprecated. In future, it will be treated as np.float64 == np.dtype(float).type. from ._conv import register_converters as _register_converters


Tags: offromregisterlibtensorflowas错误np
2条回答

这不是一个错误,它只是告诉您,在未来的版本中,此功能或行为将更改或不再可用。在

如果计划在不同版本的python和tensorflow中重用这些代码,这一点非常重要。在

您可以将h5py升级到更新的版本。它对我有用。在

sudo pip3 install h5py==2.8.0rc1

相关问题 更多 >

    热门问题