Search code examples
pythonffmpeganacondaspyder

ModuleNotFoundError: No module named 'ffmpeg' on Spyder although ffmpeg is installed on Anaconda navigator


ffmpeg is installed on Anaconda Navigator (in base(root) environment), but when I run import ffmpeg, I got this error message:

ModuleNotFoundError: No module named 'ffmpeg'

Why is this module not found and how can I fix this?

screenshot of Anaconda Navigator


Solution

  • You need to install the ffmpeg-python module to the environment:

    pip install ffmpeg-python
    

    or

    conda install -c conda-forge ffmpeg-python
    

    from there import ffmpeg statements when using the environment should work.