[Python] Install ffmpeg in to virtual environment

Discussão em 'Python' iniciado por Stack, Março 20, 2025.

  1. Stack

    Stack Membro Participativo

    I am trying to install ffmpeg in order to use it on OpenAI to record videos. I have installed it using brew install ffmpeg but somehow when I compile my code I get the same error, it is like the package is not recognized by my virtualenv where I am working.

    Error on Python console:

    raise error.DependencyNotInstalled("""Found neither the ffmpeg nor avconv executables. On OS X, you can install ffmpeg via `brew install ffmpeg`. On most Ubuntu variants, `sudo apt-get install ffmpeg` should do it. On Ubuntu 14.04, however, you'll need to install avconv with `sudo apt-get install libav-tools`.""")


    However, when I execute which ffmpeg I got the following path /usr/local/bin/ffmpeg.

    It seems like that Anaconda for example needs a specific command to install this package into its environment, it is the same for virtualenv?

    Thanks in advance.

    Continue reading...

Compartilhe esta Página