#Python#错误之:PyAV安装could not find libavdevice with pkg-config
作者:互联网
报错:
Could not find libavformat with pkg-config.
Could not find libavcodec with pkg-config.
Could not find libavdevice with pkg-config.
Could not find libavutil with pkg-config.
Could not find libavfilter with pkg-config.
Could not find libswscale with pkg-config.
Could not find libswresample with pkg-config.
解决方法:
sudo apt-get install -y python-dev python-virtualenv pkg-config
sudo sudo apt-get install -y \
libavformat-dev libavcodec-dev libavdevice-dev \
libavutil-dev libswscale-dev libavresample-dev
git clone https://github.com/PyAV-Org/PyAV.git
cd PyAV
pip install Cython
python setup.py build
参考链接:
https://github.com/PyAV-Org/PyAV/issues/105
标签:Python,PyAV,could,dev,pkg,Could,config,find 来源: https://blog.csdn.net/Happy_Yu_Life/article/details/117969268