How to install pydub?


Install pydub

To install pydub in your system, you can use pip command.

Open a terminal or command prompt and run the following command.

pip install pydub

Now, we need to install the dependencies.

Dependencies

pydub is dependent on FFmpeg library.

Install ffmpeg

FFmpeg is a complete, cross-platform solution to record, convert and stream audio and video. You can visit Download page of FFmpeg, download the executables, and run them.

Or you can run the following commands, to install them on respective operating systems.

On Mac

sudo port install ffmpeg

You may refer - Install ffmpeg on Mac.

On Ubuntu/Linux

sudo apt-get install ffmpeg