由于某些原因,brew install ffmpeg下载python3.9作为依赖
==> 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安装中有什么东西坏了?
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:
/usr/local/bin/python3 -V
Python 3.7.7发布于 2020-11-13 16:13:34
使用brew deps --tree ffmpeg显示依赖树;
在这里,您可以发现包glib需要python@3.9。有一些错误报告提到了这一点。
在手动安装任何所需的deps之后,您可以不使用任何deps来安装ffmpeg;
brew install --ignore-dependencies ffmpegffmpeg
├── ...
├── 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
├── ...https://stackoverflow.com/questions/64824109
复制相似问题