python3: 无法打开文件 'tensorflow/examples/speech_commands/train.py': [Errno 2] 没有那个文件或目录

python3: can't open file 'tensorflow/examples/speech_commands/train.py': [Errno 2] No such file or directory

我已经安装了 tensorflow(CPU) 1.9.0 版本 所需目录中不存在此脚本。我的安装有问题还是我应该从 Github 手动下载?

如果您正在学习 Simple Audio Recognition 教程,您应该先手动检查存储库以获取脚本。使用 pip 安装 TensorFlow 时不会安装这些。

请完成以下步骤开始训练:

  1. 下载 TensorFlow 存储库:git clone https://github.com/tensorflow/tensorflow.git
  2. 进入仓库目录:cd tensorflow
  3. 切换到1.9版本分支:git checkout r1.9
  4. 现在您可以运行训练脚本:python tensorflow/examples/speech_commands/train.py