我正在尝试安装https://pypi.org/project/python-librtmp/
发生错误:http://prntscr.com/pf12vd
ERROR: Command errored out with exit status 1:
command: 'c:\users\family\appdata\local\programs\python\python37-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Family\\AppData\\Local\\Temp\\pip-install-7788y47z\\python-librtmp\\setup.py'"'"'; __file__='"'"'C:\\Users\\Family\\AppData\\Local\\Temp\\pip-install-7788y47z\\python-librtmp\\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\Family\AppData\Local\Temp\pip-record-y8g56rp7\install-record.txt' --single-version-externally-managed --compile
cwd: C:\Users\Family\AppData\Local\Temp\pip-install-7788y47z\python-librtmp\
Complete output (31 lines):
running install
running build
running build_py
creating build
creating build\lib.win32-3.7
creating build\lib.win32-3.7\librtmp
copying librtmp\amf.py -> build\lib.win32-3.7\librtmp
copying librtmp\aval.py -> build\lib.win32-3.7\librtmp
copying librtmp\compat.py -> build\lib.win32-3.7\librtmp
copying librtmp\exceptions.py -> build\lib.win32-3.7\librtmp
copying librtmp\ffi.py -> build\lib.win32-3.7\librtmp
copying librtmp\logging.py -> build\lib.win32-3.7\librtmp
copying librtmp\packet.py -> build\lib.win32-3.7\librtmp
copying librtmp\rtmp.py -> build\lib.win32-3.7\librtmp
copying librtmp\stream.py -> build\lib.win32-3.7\librtmp
copying librtmp\utils.py -> build\lib.win32-3.7\librtmp
copying librtmp\__init__.py -> build\lib.win32-3.7\librtmp
running build_ext
generating cffi module 'build\\temp.win32-3.7\\Release\\librtmp._librtmp.c'
creating build\temp.win32-3.7
creating build\temp.win32-3.7\Release
building 'librtmp._librtmp' extension
creating build\temp.win32-3.7\Release\build
creating build\temp.win32-3.7\Release\build\temp.win32-3.7
creating build\temp.win32-3.7\Release\build\temp.win32-3.7\Release
creating build\temp.win32-3.7\Release\src
creating build\temp.win32-3.7\Release\src\librtmp
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\users\family\appdata\local\programs\python\python37-32\include -Ic:\users\family\appdata\local\programs\python\python37-32\include "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt" "-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" /Tcbuild\temp.win32-3.7\Release\librtmp._librtmp.c /Fobuild\temp.win32-3.7\Release\build\temp.win32-3.7\Release\librtmp._librtmp.obj
librtmp._librtmp.c
build\temp.win32-3.7\Release\librtmp._librtmp.c(493): fatal error C1083: Cannot open include file: 'librtmp/rtmp.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\cl.exe' failed with exit status 2
----------------------------------------
错误:命令错误,退出状态为1:'c:\ users \ family \ appdata \ local \ programs \ python \ python37-32 \ python.exe'-u -c'import sys,setuptools,tokenize; sys.argv [0] ='“'”'C:\ Users \ Family \ AppData \ Local \ Temp \ pip-install-7788y47z \ python-librtmp \ setup.py'“”';; 文件 ='“'”'C:\ Users \ Family \ AppData \ Local \ Temp \ pip-install-7788y47z \ python-librtmp \ setup.py'“'”'; f = getattr( tokenize,'“'”'open'“'”',打开)(文件); code = f.read()。replace('“'”“ \ r \ n'”'“ ','“'”'\ n'“'”'); f.close(); exec(compile(code, file ,'“'”'exec'“'”'))) 'install --record'C:\ Users \ Family \ AppData \ Local \ Temp \ pip-record-y8g56rp7 \ install-record.txt'--single-version-externally-managed --compile检查日志以获取完整的命令输出