成功解决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 av

Failed to build av

Installing 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


解决方法


T1、改为wheel文件进行下载

T2、其他方法寻找中……













上一篇:jquery获取被选中的复选框的id串


下一篇:优化求解器之Pyomo建模工具简介