【发布时间】:2019-05-10 02:52:25
【问题描述】:
我试图将生成器安装到模型中,但出现以下错误:
AssertionError: Cannot find installation of real FFmpeg (which comes with ffprobe).
我查看了 GitHub 上的许多解决方案以及 Stack Overflow 上的其他问题,但没有一个对我有用。
这是我运行的命令之一:
sudo add-apt-repository ppa:mc3man/trusty-media
sudo apt-get update
sudo apt-get install ffmpeg
sudo apt-get install frei0r-plugins
pip list也表示ffmpeg-1.4的存在
此外,我尝试强制重新安装和更新 ffmpeg,以防万一没有正确安装任何依赖项。
我还手动设置了ffmpeg的skvideo路径:
skvideo.setFFmpegPath('/usr/local/lib/python3.6/dist-packages/ffmpeg/')
返回:/usr/local/lib/python3.6/dist-packages/skvideo/__init__.py:306: UserWarning: ffmpeg/ffprobe not found in path: /usr/local/lib/python3.6/dist-packages/ffmpeg/
warnings.warn("ffmpeg/ffprobe not found in path: " + str(path), UserWarning)
顺便说一句,当我尝试安装时,它也返回此错误,我不知道该怎么办:
Get:127 http://archive.ubuntu.com/ubuntu bionic/main amd64 vdpau-driver-all amd64 1.1.1-3ubuntu1 [4,674 B]
Fetched 60.4 MB in 7s (8,769 kB/s)
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/w/wavpack/libwavpack1_5.1.0-2ubuntu1.1_amd64.deb 404 Not Found [IP: 91.189.88.149 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
我跑了apt-get update --fix-missing,但这并没有让任何事情变得更好。
有解决办法吗?
【问题讨论】:
-
不了解您提到的所有技术,但我知道 Windows 和 ffmpeg,您必须在安装后设置环境变量才能至少从命令中访问它们提示,我猜在 Ubuntu 和使用 python 中的 ffmpeg 也是如此。我在胡乱猜测。这是 Ubuntu 中环境变量的链接askubuntu.com/questions/730/how-do-i-set-environment-variables
标签: python ubuntu ffmpeg scikit-learn google-colaboratory