返回顶部
首页 > 资讯 > 后端开发 > Python >完美解决ERROR: Command errored out with exit status 1: command: ‘f:\program files\python\python36\pyt
  • 501
分享到

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

python人工智能java 2023-09-24 19:09:19 501人浏览 独家记忆

Python 官方文档:入门教程 => 点击学习

摘要

完美解决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

在这里插入图片描述

文章目录

报错问题

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

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

--结束END--

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

本文链接: https://lsjlt.com/news/417048.html(转载时请注明来源链接)

有问题或投稿请发送至: 邮箱/279061341@qq.com    QQ/279061341

猜你喜欢
软考高级职称资格查询
编程网,编程工程师的家园,是目前国内优秀的开源技术社区之一,形成了由开源软件库、代码分享、资讯、协作翻译、讨论区和博客等几大频道内容,为IT开发者提供了一个发现、使用、并交流开源技术的平台。
  • 官方手机版

  • 微信公众号

  • 商务合作