首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >brew安装ffmpeg安装python 3.9

brew安装ffmpeg安装python 3.9
EN

Stack Overflow用户
提问于 2020-11-13 16:03:08
回答 1查看 1.3K关注 0票数 0

由于某些原因,brew install ffmpeg下载python3.9作为依赖

代码语言:javascript
复制
==> Installing dependencies for ffmpeg: gnutls, python@3.9, glib, cairo, gobject-introspection, harfbuzz, libass and libvpx

正如我在这里看到的,https://formulae.brew.sh/formula/ffmpeg不依赖python3.9

如何为当前的pythonPython3.7.7安装ffmpeg?

更新:

也许我的python安装中有什么东西坏了?

代码语言:javascript
复制
brew info python

python@3.9: stable 3.9.0 (bottled)
Interpreted, interactive, object-oriented programming language
https://www.python.org/
/usr/local/Cellar/python/3.7.7 (4,165 files, 64.0MB) *
  Poured from bottle on 2020-04-03 at 20:11:58
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/python@3.9.rb
License: Python-2.0
==> Dependencies
Build: pkg-config ✔
Required: gdbm ✔, openssl@1.1 ✔, readline ✔, sqlite ✔, xz ✔
==> Caveats
Python has been installed as
  /usr/local/bin/python3

Unversioned symlinks `python`, `python-config`, `pip` etc. pointing to
`python3`, `python3-config`, `pip3` etc., respectively, have been installed into
  /usr/local/opt/python@3.9/libexec/bin

You can install Python packages with
  pip3 install <package>
They will install into the site-package directory
  /usr/local/lib/python3.9/site-packages

See: https://docs.brew.sh/Homebrew-and-Python
==> Analytics
install: 588,344 (30 days), 666,372 (90 days), 666,373 (365 days)
install-on-request: 104,126 (30 days), 105,703 (90 days), 105,705 (365 days)
build-error: 0 (30 days)

brew info显示了python@3.9,但实际上是3.7.7:

代码语言:javascript
复制
/usr/local/bin/python3 -V
Python 3.7.7
EN

回答 1

Stack Overflow用户

发布于 2020-11-13 16:13:34

使用brew deps --tree ffmpeg显示依赖树;

在这里,您可以发现包glib需要python@3.9。有一些错误报告提到了这一点。

在手动安装任何所需的deps之后,您可以不使用任何deps来安装ffmpeg

代码语言:javascript
复制
brew install --ignore-dependencies ffmpeg
代码语言:javascript
复制
ffmpeg
├── ...
├── libass
│   ├── freetype
│   │   └── libpng
│   ├── fribidi
│   └── harfbuzz
│       ├── cairo
│       │   ├── fontconfig
│       │   │   └── freetype
│       │   │       └── libpng
│       │   ├── freetype
│       │   │   └── libpng
│       │   ├── glib
│       │   │   ├── gettext
│       │   │   ├── libffi
│       │   │   ├── pcre
│       │   │   └── python@3.9
│       │   │       ├── gdbm
│       │   │       ├── openssl@1.1
│       │   │       ├── readline
│       │   │       ├── sqlite
│       │   │       │   └── readline
│       │   │       └── xz
│       │   ├── libpng
│       │   ├── lzo
│       │   └── pixman
│       ├── freetype
│       │   └── libpng
│       ├── glib
│       │   ├── gettext
│       │   ├── libffi
│       │   ├── pcre
│       │   └── python@3.9
│       │       ├── gdbm
│       │       ├── openssl@1.1
│       │       ├── readline
│       │       ├── sqlite
│       │       │   └── readline
│       │       └── xz
│       ├── gobject-introspection
│       │   ├── cairo
│       │   │   ├── fontconfig
│       │   │   │   └── freetype
│       │   │   │       └── libpng
│       │   │   ├── freetype
│       │   │   │   └── libpng
│       │   │   ├── glib
│       │   │   │   ├── gettext
│       │   │   │   ├── libffi
│       │   │   │   ├── pcre
│       │   │   │   └── python@3.9
│       │   │   │       ├── gdbm
│       │   │   │       ├── openssl@1.1
│       │   │   │       ├── readline
│       │   │   │       ├── sqlite
│       │   │   │       │   └── readline
│       │   │   │       └── xz
│       │   │   ├── libpng
│       │   │   ├── lzo
│       │   │   └── pixman
│       │   ├── glib
│       │   │   ├── gettext
│       │   │   ├── libffi
│       │   │   ├── pcre
│       │   │   └── python@3.9
│       │   │       ├── gdbm
│       │   │       ├── openssl@1.1
│       │   │       ├── readline
│       │   │       ├── sqlite
│       │   │       │   └── readline
│       │   │       └── xz
│       │   ├── libffi
│       │   ├── pkg-config
│       │   └── python@3.9
│       │       ├── gdbm
│       │       ├── openssl@1.1
│       │       ├── readline
│       │       ├── sqlite
│       │       │   └── readline
│       │       └── xz
│       ├── graphite2
│       └── icu4c
├── ...
票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/64824109

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档