Trouble installing pydub (FFMPEG more precisely)

0

Hello everyone ,

I ve created a zip file containing pydub and ffmpeg and put it on a amazon lamda layer . I ve tried locally before running my lambda script if everything was working and it was , but everytime I run my lambda script it says that pydub cannot found my ffmpeg even though it is in the same zipfile . was wondering what was I doing wrong . If you need any information i would be glad to send more .

Nick
已提問 5 個月前檢視次數 242 次
1 個回答
0

Make sure that your dependencies are not in th eroot of the zip file, but rather in the 'python' or 'python/lib/python3.x/site-packages' folders, as described here.

profile pictureAWS
專家
Uri
已回答 5 個月前
  • Thank you very much and i did that , my script is recoingzing the PYDUB library but pydub can t access FFMPEG and i dont understand why since its also in the site packages !! So I was wondering if the FFMPEG must also be in the site-packages , or should i leave it somewhere else !

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南