pymp未检测到ffmpeg [英] ffmpeg is not being detected by Spyder

查看:449
本文介绍了pymp未检测到ffmpeg的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由Anaconda运行spyder中OpenAi体育馆的几乎所有代码(例如,此代码: https://gym.openai.com/evaluations/eval_y5dnhk0ZSMqlqJKBz5vJQw ) 我遇到以下错误消息:

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'.

但是,当我在终端中键入brew install ffmpeg时,却得到Warning: ffmpeg-3.2 already installed,什么也没发生.

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?

推荐答案

您需要安装一个可以被Anaconda识别的ffmpeg副本.请在终端中运行此命令

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

这篇关于pymp未检测到ffmpeg的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆