文章详情

短信预约-IT技能 免费直播动态提醒

请输入下面的图形验证码

提交验证

短信预约提醒成功

完美解决ERROR: Command errored out with exit status 1: command: ‘f:\program files\python\python36\pyt

2023-09-24 19:21

关注

完美解决ERROR: Command errored out with exit status 1: command: 'f:\program files\python\python36\pyt

在这里插入图片描述

文章目录

报错问题

之前在工作中遇到过这个坑,记录一下问题以及解决方法,不一定针对所有情况都能用,但是可以供大家参考。
问题描述如下:

ERROR: Command errored out with exit status 1: command: 'f:\program files\python\python36\pyt

  Building wheel for av (setup.py) ... error  ERROR: Command errored out with exit status 1:   command: 'f:\program files\python\python36\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\niu\\AppData\\Local\\Temp\\pip-install-5rnmsd35\\av\\setup.py'"'"'; __file__='"'"'C:\\Users\\niu\\AppData\\Local\\Temp\\pip-install-5rnmsd35\\av\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\niu\AppData\Local\Temp\pip-wheel-petvhosf' --python-tag cp36       cwd: C:\Users\niu\AppData\Local\Temp\pip-install-5rnmsd35\av\  Complete output (36 lines):  running bdist_wheel  running build  running build_py  creating build  creating build\lib.win-amd64-3.6  creating build\lib.win-amd64-3.6\av  copying av\datasets.py -> build\lib.win-amd64-3.6\av  copying av\deprecation.py -> build\lib.win-amd64-3.6\av  copying av\__init__.py -> build\lib.win-amd64-3.6\av  copying av\__main__.py -> build\lib.win-amd64-3.6\av  creating build\lib.win-amd64-3.6\av\audio  copying av\audio\__init__.py -> build\lib.win-amd64-3.6\av\audio  creating build\lib.win-amd64-3.6\av\codec  copying av\codec\__init__.py -> build\lib.win-amd64-3.6\av\codec  creating build\lib.win-amd64-3.6\av\container  copying av\container\__init__.py -> build\lib.win-amd64-3.6\av\container  creating build\lib.win-amd64-3.6\av\data  copying av\data\__init__.py -> build\lib.win-amd64-3.6\av\data  creating build\lib.win-amd64-3.6\av\filter  copying av\filter\__init__.py -> build\lib.win-amd64-3.6\av\filter  creating build\lib.win-amd64-3.6\av\subtitles  copying av\subtitles\__init__.py -> build\lib.win-amd64-3.6\av\subtitles  creating build\lib.win-amd64-3.6\av\video  copying av\video\__init__.py -> build\lib.win-amd64-3.6\av\video  running build_ext  running config  writing build\temp.win-amd64-3.6\Release\include\pyav\config.h  running cythonize  building 'av.buffer' extension  creating build\temp.win-amd64-3.6\Release\src  creating build\temp.win-amd64-3.6\Release\src\av  D:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Dinline=__inline -Dinline=__inline -Dinline=__inline -Dinline=__inline -Dinline=__inline -Dinline=__inline -Dinline=__inline -Dinline=__inline -Dinline=__inline -Dinline=__inline -Dinline=__inline -Dinline=__inline -Dinline=__inline -Dinline=__inline -Dinline=__inline -Dinline=__inline -Dinline=__inline -Dinline=__inline -Dinline=__inline -Dinline=__inline -Dinline=__inline -Dinline=__inline -Dinline=__inline -Dinline=__inline -Dinline=__inline -Dinline=__inline -Dinline=__inline -Dinline=__inline -Dinline=__inline -Dinline=__inline -Dinline=__inline -Dinline=__inline -Dinline=__inline -Dinline=__inline -Dinline=__inline -Dinline=__inline -Dinline=__inline -Dinline=__inline -Dinline=__inline -Dinline=__inline -Dinline=__inline -Dinline=__inline -Dinline=__inline -Dinline=__inline -Iinclude "-If:\program files\python\python36\include" -Ibuild\temp.win-amd64-3.6\Release\include "-If:\program files\python\python36\include" "-If:\program files\python\python36\include" -Ibuild\temp.win-amd64-3.6\Release\include "-ID:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" "-ID:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\ATLMFC\INCLUDE" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" "-IC:\Program Files (x86)\Windows Kits\8.1\include\\shared" "-IC:\Program Files (x86)\Windows Kits\8.1\include\\um" "-IC:\Program Files (x86)\Windows Kits\8.1\include\\winrt" /Tcsrc\av\buffer.c /Fobuild\temp.win-amd64-3.6\Release\src\av\buffer.obj  buffer.c  D:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO "/LIBPATH:f:\program files\python\python36\libs" "/LIBPATH:f:\program files\python\python36\PCbuild\amd64" "/LIBPATH:f:\program files\python\python36\libs" "/LIBPATH:f:\program files\python\python36\PCbuild\amd64" "/LIBPATH:D:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\LIB\amd64" "/LIBPATH:D:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\ATLMFC\LIB\amd64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.10240.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\lib\um\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\8.1\lib\winv6.3\um\x64" avdevice.lib avutil.lib avfilter.lib swresample.lib avformat.lib swscale.lib avcodec.lib /EXPORT:PyInit_buffer build\temp.win-amd64-3.6\Release\src\av\buffer.obj /OUT:build\lib.win-amd64-3.6\av\buffer.cp36-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.6\Release\src\av\buffer.cp36-win_amd64.lib /OPT:NOREF  LINK : fatal error LNK1181: 无法打开输入文件“avdevice.lib”  error: command 'D:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\link.exe' failed with exit status 1181  ----------------------------------------  ERROR: Failed building wheel for av  Running setup.py clean for avFailed to build avInstalling collected packages: av    Running setup.py install for av ... error    ERROR: Command errored out with exit status 1:     command: 'f:\program files\python\python36\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\niu\\AppData\\Local\\Temp\\pip-install-5rnmsd35\\av\\setup.py'"'"'; __file__='"'"'C:\\Users\\niu\\AppData\\Local\\Temp\\pip-install-5rnmsd35\\av\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\niu\AppData\Local\Temp\pip-record-4xd1oct7\install-record.txt' --single-version-externally-managed --compile         cwd: C:\Users\niu\AppData\Local\Temp\pip-install-5rnmsd35\av\    Complete output (36 lines):    running install    running build    running build_py    creating build    creating build\lib.win-amd64-3.6    creating build\lib.win-amd64-3.6\av    copying av\datasets.py -> build\lib.win-amd64-3.6\av    copying av\deprecation.py -> build\lib.win-amd64-3.6\av    copying av\__init__.py -> build\lib.win-amd64-3.6\av    copying av\__main__.py -> build\lib.win-amd64-3.6\av    creating build\lib.win-amd64-3.6\av\audio    copying av\audio\__init__.py -> build\lib.win-amd64-3.6\av\audio    creating build\lib.win-amd64-3.6\av\codec    copying av\codec\__init__.py -> build\lib.win-amd64-3.6\av\codec    creating build\lib.win-amd64-3.6\av\container    copying av\container\__init__.py -> build\lib.win-amd64-3.6\av\container    creating build\lib.win-amd64-3.6\av\data    copying av\data\__init__.py -> build\lib.win-amd64-3.6\av\data    creating build\lib.win-amd64-3.6\av\filter    copying av\filter\__init__.py -> build\lib.win-amd64-3.6\av\filter    creating build\lib.win-amd64-3.6\av\subtitles    copying av\subtitles\__init__.py -> build\lib.win-amd64-3.6\av\subtitles    creating build\lib.win-amd64-3.6\av\video    copying av\video\__init__.py -> build\lib.win-amd64-3.6\av\video    running build_ext    running config    writing build\temp.win-amd64-3.6\Release\include\pyav\config.h    running cythonize    building 'av.buffer' extension    creating build\temp.win-amd64-3.6\Release\src    creating build\temp.win-amd64-3.6\Release\src\av    D:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Dinline=__inline -Dinline=__inline -Dinline=__inline -Dinline=__inline -Dinline=__inline -Dinline=__inline -Dinline=__inline -Dinline=__inline -Dinline=__inline -Dinline=__inline -Dinline=__inline -Dinline=__inline -Dinline=__inline -Dinline=__inline -Dinline=__inline -Dinline=__inline -Dinline=__inline -Dinline=__inline -Dinline=__inline -Dinline=__inline -Dinline=__inline -Dinline=__inline -Dinline=__inline -Dinline=__inline -Dinline=__inline -Dinline=__inline -Dinline=__inline -Dinline=__inline -Dinline=__inline -Dinline=__inline -Dinline=__inline -Dinline=__inline -Dinline=__inline -Dinline=__inline -Dinline=__inline -Dinline=__inline -Dinline=__inline -Dinline=__inline -Dinline=__inline -Dinline=__inline -Dinline=__inline -Dinline=__inline -Dinline=__inline -Dinline=__inline -Iinclude -Ibuild\temp.win-amd64-3.6\Release\include "-If:\program files\python\python36\include" "-If:\program files\python\python36\include" "-If:\program files\python\python36\include" -Ibuild\temp.win-amd64-3.6\Release\include "-ID:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" "-ID:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\ATLMFC\INCLUDE" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" "-IC:\Program Files (x86)\Windows Kits\8.1\include\\shared" "-IC:\Program Files (x86)\Windows Kits\8.1\include\\um" "-IC:\Program Files (x86)\Windows Kits\8.1\include\\winrt" /Tcsrc\av\buffer.c /Fobuild\temp.win-amd64-3.6\Release\src\av\buffer.obj    buffer.c    D:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO "/LIBPATH:f:\program files\python\python36\libs" "/LIBPATH:f:\program files\python\python36\PCbuild\amd64" "/LIBPATH:f:\program files\python\python36\libs" "/LIBPATH:f:\program files\python\python36\PCbuild\amd64" "/LIBPATH:D:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\LIB\amd64" "/LIBPATH:D:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\ATLMFC\LIB\amd64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.10240.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\lib\um\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\8.1\lib\winv6.3\um\x64" swscale.lib swresample.lib avcodec.lib avformat.lib avdevice.lib avutil.lib avfilter.lib /EXPORT:PyInit_buffer build\temp.win-amd64-3.6\Release\src\av\buffer.obj /OUT:build\lib.win-amd64-3.6\av\buffer.cp36-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.6\Release\src\av\buffer.cp36-win_amd64.lib /OPT:NOREF

在这里插入图片描述

解决方法

在这里插入图片描述
为wheel文件进行下载

声明

解决方法参考网络,如有侵权联系我删除

来源地址:https://blog.csdn.net/weixin_50843918/article/details/130569988

阅读原文内容投诉

免责声明:

① 本站未注明“稿件来源”的信息均来自网络整理。其文字、图片和音视频稿件的所属权归原作者所有。本站收集整理出于非商业性的教育和科研之目的,并不意味着本站赞同其观点或证实其内容的真实性。仅作为临时的测试数据,供内部测试之用。本站并未授权任何人以任何方式主动获取本站任何信息。

② 本站未注明“稿件来源”的临时测试数据将在测试完成后最终做删除处理。有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341

软考中级精品资料免费领

  • 历年真题答案解析
  • 备考技巧名师总结
  • 高频考点精准押题
  • 2024年上半年信息系统项目管理师第二批次真题及答案解析(完整版)

    难度     813人已做
    查看
  • 【考后总结】2024年5月26日信息系统项目管理师第2批次考情分析

    难度     354人已做
    查看
  • 【考后总结】2024年5月25日信息系统项目管理师第1批次考情分析

    难度     318人已做
    查看
  • 2024年上半年软考高项第一、二批次真题考点汇总(完整版)

    难度     435人已做
    查看
  • 2024年上半年系统架构设计师考试综合知识真题

    难度     224人已做
    查看

相关文章

发现更多好内容

猜你喜欢

AI推送时光机
位置:首页-资讯-后端开发
咦!没有更多了?去看看其它编程学习网 内容吧
首页课程
资料下载
问答资讯