tensorflow.public_api的问题

在运行一个基于tensorflow的学习网络时,pycharm报错缺少一个tensorflow.public_api

import os

import tensorflow as tf
import tensorflow.public_api as tfds

Traceback (most recent call last):
  File "D:\Python\demo1.py", line 21, in <module>
    import tensorflow.public_api as tfds
ModuleNotFoundError: No module named 'tensorflow.public_api'


```希望可以给出解答


你没有安装tensorflow库吧
终端 pip install tensorflow

mark