- Newest
- Most votes
- Most comments
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.
Hi, I have done this using python 3.9 version, so maybe it isn't the most accurate or elegant solution but it worked for me. In my local environment I created a /python folder. Then I use the terminal and put the following command: pip install pydub --platform manylinux2014_x86_64 --python-version 3.9 --only-binary=:all: -t ./python After that I went to this website "https://johnvansickle.com/ffmpeg/" and download "ffmpeg-git-amd64-static.tar.xz". Then I unzip that and searched for two files: "ffmpeg", "ffprobe". These are executable files. Then I moved this two files inside the python folder I created. Finally you should have a ./python folder with a folder called "pydub", another folder called "pydub-0.25.1.dist-info", and two files "ffmpeg" and "ffprobe". Then zip the ./python folder. I don't take credit for this solution as is not mine, I simply followed the steps: https://stackoverflow.com/questions/62901400/using-pydub-on-aws-lambda
answered a year ago
Relevant content
asked 4 years ago
asked 3 years ago
asked 2 years ago

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 !