conda环境里安装ffmpeg

遇到的问题

在执行脚本的时候提示:

/home/xxx/anaconda3/envs/llm-asr/lib/python3.9/site-packages/pydub/utils.py:170: RuntimeWarning: Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work
  warn("Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work", RuntimeWarning)

首先,在我的环境里,我首先用 pip3 install ffmpeg 来安装的 ffmpeg。但是很明显,不起作用,可能是ffmpeg一些必要的依赖没有安装,所以这时候,尝试采用虚拟环境里的 conda 命令来安装。

conda install -c conda-forge ffmpeg

可以通过 sudo find / -name "ffmpeg" ; echo $PATH 来查看 ffmpeg 是否存在环境变量里。

相关推荐

  1. conda环境安装ffmpeg

    2024-06-06 04:04:08       26 阅读
  2. linux 环境安装ffmpeg

    2024-06-06 04:04:08       68 阅读
  3. Conda」在Linux系统中安装Conda环境管理器

    2024-06-06 04:04:08       22 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-06-06 04:04:08       94 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-06-06 04:04:08       101 阅读
  3. 在Django里面运行非项目文件

    2024-06-06 04:04:08       82 阅读
  4. Python语言-面向对象

    2024-06-06 04:04:08       91 阅读

热门阅读

  1. 在本地局域网的 Ubuntu 16.04 主机安装 GitLab 服务

    2024-06-06 04:04:08       25 阅读
  2. 正则表达式 0.1v

    2024-06-06 04:04:08       25 阅读
  3. WHAT - 容器化系列(二)- docker

    2024-06-06 04:04:08       28 阅读
  4. Shell正则表达式与文本处理器

    2024-06-06 04:04:08       22 阅读
  5. 从0开发一个Chrome插件:创建第一个Chrome插件

    2024-06-06 04:04:08       28 阅读
  6. SASS语法基础

    2024-06-06 04:04:08       26 阅读
  7. CentOS 7 64位 常用命令

    2024-06-06 04:04:08       27 阅读
  8. 03-3.1.1 栈的基本概念

    2024-06-06 04:04:08       33 阅读
  9. 日常工作笔记

    2024-06-06 04:04:08       30 阅读
  10. 带你认识ffmpeg

    2024-06-06 04:04:08       34 阅读
  11. python中使用缓存技术

    2024-06-06 04:04:08       30 阅读