Running almost every code from OpenAi gym in spyder by Anaconda (for instance this code: https://gym.openai.com/evaluations/eval_y5dnhk0ZSMqlqJKBz5vJQw ) I run into the following error message:
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 type brew install ffmpeg
in terminal, I get Warning: ffmpeg-3.2 already installed
and nothing happens.
Any ideas on how to fix this error?
If you try that right now, you'll get an error saying that the ffmpeg is not recognized as an internal or external command. That basically means windows has not idea what you're talking about. All we need to do is add C:\ffmpeg\bin to our system path, and it'll understand us.
You need to install a copy of ffmpeg that can be recognized by Anaconda. Please run this command in a terminal to do that
conda install -c conda-forge ffmpeg
Simply download and install ffmpeg
and then add to path. After restarting the Jupyter notebook server, it worked for me.
See full instructions here: http://blog.gregzaal.com/how-to-install-ffmpeg-on-windows/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With