简体   繁体   English

无法在Mac上安装PyAv,需要pkg-config

[英]Can't install PyAv on Mac, pkg-config is required

I'm trying to install PyAv on my Mac. 我正在尝试在Mac上安装PyAv。 I'm using Pyzo, I run pip install av but I got this: 我正在使用Pyzo,我运行pip install av但我得到了:

pkg-config is required for building PyAV; aborting!
Complete output from command python setup.py egg_info:
pkg-config is required for building PyAV; aborting!

----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/lk/fv_597y15lz7wqz2c4n3hb200000gn/T/pip-build-z1a_1u_k/av

I've tried to find it using Macports but Pyzo still can't find it, I also tried to install this but again, nothing. 我已经尝试过使用的MacPorts但Pyzo仍然无法找到它来寻找,我也尝试安装 ,但再次,什么都没有。 How can I solve this? 我该如何解决?

You can use brew : 您可以使用brew

brew install pkgconfig
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> Deleted Formulae
cctools                                                       cctools-headers                                               ld64

==> Downloading https://homebrew.bintray.com/bottles/pkg-config-0.29.2.mojave.bottle.tar.gz
######################################################################## 100.0%
==> Pouring pkg-config-0.29.2.mojave.bottle.tar.gz
🍺  /usr/local/Cellar/pkg-config/0.29.2: 11 files, 627.2KB

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM