【发布时间】:2021-02-25 15:36:04
【问题描述】:
由于某种原因brew install ffmpeg 下载 python 3.9 作为依赖
==> Installing dependencies for ffmpeg: gnutls, python@3.9, glib, cairo, gobject-introspection, harfbuzz, libass and libvpx
正如我在这里看到的 https://formulae.brew.sh/formula/ffmpeg 不依赖于 python 3.9
如何为我当前的 python Python 3.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
【问题讨论】:
标签: python macos ffmpeg homebrew