简体   繁体   English

Errno 2 没有这样的文件或目录:'ffprobe':'ffprobe'

[英]Errno 2 No such file or directory: 'ffprobe': 'ffprobe'

I have to develop an Alexa Skill that use Pydub for edit mp3 file.我必须开发一个使用 Pydub 编辑 mp3 文件的 Alexa 技能。

Pydub requires ffmpeg and so I have add it in requirements.txt but now, when I try to run my skill, it give me "Sorry, I had trouble doing what you asked. Please try again." Pydub 需要 ffmpeg,因此我已将其添加到 requirements.txt 中,但是现在,当我尝试运行我的技能时,它给我“抱歉,我无法执行您的要求。请再试一次。” . .

In CloudWatch the error is: [Errno 2] No such file or directory: 'ffprobe': 'ffprobe' but in requirements.txt there is the ffprobe import.在 CloudWatch 中,错误是: [Errno 2] No such file or directory: 'ffprobe': 'ffprobe'但在 requirements.txt 中有 ffprobe 导入。

NB: In local the code runs successfully without any errors注意:在本地代码运行成功,没有任何错误

Screenshot: Error in CloudWatch屏幕截图: CloudWatch 中的错误

I had once a problem with ffprobe ( No such file or directory ), but when recording an animation using matplotlib.我曾经遇到过 ffprobe 问题( No such file or directory ),但是在使用 matplotlib 录制动画时。 I solved it just by installing ffprobe and adding it to "path" in environment variables (on Windows).我只是通过安装 ffprobe 并将其添加到环境变量(在 Windows 上)中的“路径”来解决它。 Maybe it could work for you.也许它对你有用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM