ubuntu16.04 tensorflow 报错 ImportError: cannot import name 'audio_ops'

2022-09-02 20:19:05 浏览数 (1)

代码语言:javascript复制
Traceback (most recent call last):
  File "train.py", line 81, in <module>
    import input_data
  File "/devdata/AI/DL/tensorflow/tensorflow/examples/speech_commands/input_data.py",
   line 35, in <module>
    from tensorflow.contrib.framework.python.ops import audio_ops as contrib_audio
ImportError: cannot import name 'audio_ops'

解决办法: sudo pip3 install tf-nightly -i https://pypi.tuna.tsinghua.edu.cn/simple/

0 人点赞