简体   繁体   English

pyAV pip 安装失败,退出状态为 1181

[英]pip installation failure of pyAV with exit status 1181

I am having trouble installing PyAV through pip.我在通过 pip 安装 PyAV 时遇到问题。 First it required me to download Microsoft Visual C++ Build Tools首先它要求我下载 Microsoft Visual C++ Build Tools

building 'av.buffer' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/

and when I did install this, I get the following error当我安装它时,出现以下错误

LINK : fatal error LNK1181: cannot open input file 'avcodec.lib'
    error: command 'C:\\Users\\Kesar\\AppData\\Local\\Programs\\Common\\Microsoft\\Visual C++ for Python\\9.0\\VC\\Bin\\amd64\\link.exe' failed with exit status 1181

I even tried to build PyAV from source, but the same problem persists.我什至尝试从源代码构建 PyAV,但同样的问题仍然存在。 How do I solve this?我该如何解决这个问题?

它通过将lib文件复制到python“libs”目录和包含目录到“includes”目录中的方法对我有用,这也可以在这个站点中看到

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

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