目录
解决问题
1. Building wheel for av (setup.py) ... error 2. ERROR: Command errored out with exit status 1: 3. 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 4. cwd: C:\Users\niu\AppData\Local\Temp\pip-install-5rnmsd35\av\ 5. Complete output (36 lines): 6. running bdist_wheel 7. running build 8. running build_py 9. creating build 10. creating build\lib.win-amd64-3.6 11. creating build\lib.win-amd64-3.6\av 12. copying av\datasets.py -> build\lib.win-amd64-3.6\av 13. copying av\deprecation.py -> build\lib.win-amd64-3.6\av 14. copying av\__init__.py -> build\lib.win-amd64-3.6\av 15. copying av\__main__.py -> build\lib.win-amd64-3.6\av 16. creating build\lib.win-amd64-3.6\av\audio 17. copying av\audio\__init__.py -> build\lib.win-amd64-3.6\av\audio 18. creating build\lib.win-amd64-3.6\av\codec 19. copying av\codec\__init__.py -> build\lib.win-amd64-3.6\av\codec 20. creating build\lib.win-amd64-3.6\av\container 21. copying av\container\__init__.py -> build\lib.win-amd64-3.6\av\container 22. creating build\lib.win-amd64-3.6\av\data 23. copying av\data\__init__.py -> build\lib.win-amd64-3.6\av\data 24. creating build\lib.win-amd64-3.6\av\filter 25. copying av\filter\__init__.py -> build\lib.win-amd64-3.6\av\filter 26. creating build\lib.win-amd64-3.6\av\subtitles 27. copying av\subtitles\__init__.py -> build\lib.win-amd64-3.6\av\subtitles 28. creating build\lib.win-amd64-3.6\av\video 29. copying av\video\__init__.py -> build\lib.win-amd64-3.6\av\video 30. running build_ext 31. running config 32. writing build\temp.win-amd64-3.6\Release\include\pyav\config.h 33. running cythonize 34. building 'av.buffer' extension 35. creating build\temp.win-amd64-3.6\Release\src 36. creating build\temp.win-amd64-3.6\Release\src\av 37. 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 38. buffer.c 39. 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 40. LINK : fatal error LNK1181: 无法打开输入文件“avdevice.lib” 41. error: command 'D:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\link.exe' failed with exit status 1181 42. ---------------------------------------- 43. ERROR: Failed building wheel for av 44. Running setup.py clean for av 45. Failed to build av 46. Installing collected packages: av 47. Running setup.py install for av ... error 48. ERROR: Command errored out with exit status 1: 49. 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 50. cwd: C:\Users\niu\AppData\Local\Temp\pip-install-5rnmsd35\av\ 51. Complete output (36 lines): 52. running install 53. running build 54. running build_py 55. creating build 56. creating build\lib.win-amd64-3.6 57. creating build\lib.win-amd64-3.6\av 58. copying av\datasets.py -> build\lib.win-amd64-3.6\av 59. copying av\deprecation.py -> build\lib.win-amd64-3.6\av 60. copying av\__init__.py -> build\lib.win-amd64-3.6\av 61. copying av\__main__.py -> build\lib.win-amd64-3.6\av 62. creating build\lib.win-amd64-3.6\av\audio 63. copying av\audio\__init__.py -> build\lib.win-amd64-3.6\av\audio 64. creating build\lib.win-amd64-3.6\av\codec 65. copying av\codec\__init__.py -> build\lib.win-amd64-3.6\av\codec 66. creating build\lib.win-amd64-3.6\av\container 67. copying av\container\__init__.py -> build\lib.win-amd64-3.6\av\container 68. creating build\lib.win-amd64-3.6\av\data 69. copying av\data\__init__.py -> build\lib.win-amd64-3.6\av\data 70. creating build\lib.win-amd64-3.6\av\filter 71. copying av\filter\__init__.py -> build\lib.win-amd64-3.6\av\filter 72. creating build\lib.win-amd64-3.6\av\subtitles 73. copying av\subtitles\__init__.py -> build\lib.win-amd64-3.6\av\subtitles 74. creating build\lib.win-amd64-3.6\av\video 75. copying av\video\__init__.py -> build\lib.win-amd64-3.6\av\video 76. running build_ext 77. running config 78. writing build\temp.win-amd64-3.6\Release\include\pyav\config.h 79. running cythonize 80. building 'av.buffer' extension 81. creating build\temp.win-amd64-3.6\Release\src 82. creating build\temp.win-amd64-3.6\Release\src\av 83. 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 84. buffer.c 85. 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