问题描述
我正在尝试安装 ElastAlert.我已经尝试了他们文档中描述的两种方式:
I am trying to install ElastAlert. I have tried both ways described in their documentation:
1:通过pip安装:pip install elastalert
1: Installing via pip: pip install elastalert
尝试安装blist"时安装失败.
The installation fails when trying to install "blist".
2: 克隆 repo,使用 python setup.py install 安装 setup.py 文件
2: Cloning the repo, installing the setup.py file with python setup.py install
尝试安装blist"时脚本失败.
The script fails when trying to install "blist".
所以我尝试单独安装blist":
So then I have tried to install "blist" separately with:
pip install blist,失败.
pip install blist, which fails.
然后我下载了blist"的 .exe 安装文件,它打开并告诉我我需要 Python 2.6 来安装它.我安装了 3.8.1,所以这应该不是问题吧?
and I downloaded the .exe installation file for "blist" which opens and tells me I do need Python 2.6 to install it. I have 3.8.1 installed so that should not really be the problem right?
我在这里的系绳结束了,非常感谢一些帮助:)
I am at the end of tether here and would really appreciate some help :)
尝试 pip install elastalert 时出错:
Error when trying pip install elastalert:
错误:命令出错,退出状态为 1:命令:'c:\users\matthias.reichenberg\appdata\local\programs\python\python38\python.exe' -u -c 'import sys, setuptools, tokenize;sys.argv[0] = '"'"'C:\Users\matthias.reichenberg\AppData\Local\Temp\pip-install-f99484f4\blist\setup.py'"'"';file='"'"'C:\Users\matthias.reichenberg\AppData\Local\Temp\pip-install-f99484f4\blist\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\matthias.reichenberg\AppData\Local\Temp\pip-wheel-9o0odm_c'cwd: C:\Users\matthias.reichenberg\AppData\Local\Temp\pip-install-f99484f4\blist\
ERROR: Command errored out with exit status 1: command: 'c:\users\matthias.reichenberg\appdata\local\programs\python\python38\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\matthias.reichenberg\AppData\Local\Temp\pip-install-f99484f4\blist\setup.py'"'"'; file='"'"'C:\Users\matthias.reichenberg\AppData\Local\Temp\pip-install-f99484f4\blist\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\matthias.reichenberg\AppData\Local\Temp\pip-wheel-9o0odm_c' cwd: C:\Users\matthias.reichenberg\AppData\Local\Temp\pip-install-f99484f4\blist\
错误:命令'C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.23.28105\bin\HostX86\x64\cl.exe' 失败,退出状态为 2
error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.23.28105\bin\HostX86\x64\cl.exe' failed with exit status 2
错误:blist 的构建轮失败为 blist 运行 setup.py clean构建 blist 失败
ERROR: Failed building wheel for blist Running setup.py clean for blistFailed to build blist
错误:命令出错,退出状态为 1:命令:'c:\users\matthias.reichenberg\appdata\local\programs\python\python38\python.exe' -u -c 'import sys, setuptools, tokenize;sys.argv[0] = '"'"'C:\Users\matthias.reichenberg\AppData\Local\Temp\pip-install-f99484f4\blist\setup.py'"'"';file='"'"'C:\Users\matthias.reichenberg\AppData\Local\Temp\pip-install-f99484f4\blist\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\matthias.reichenberg\AppData\Local\Temp\pip-record-we1u1k_w\install-record.txt' --single-version-externally-managed --compile --install-headers'c:\users\matthias.reichenberg\appdata\local\programs\python\python38\Include\blist'cwd: C:\Users\matthias.reichenberg\AppData\Local\Temp\pip-install-f99484f4\blist\完整输出(19 行):运行安装运行构建运行 build_py创建构建创建 build\lib.win-amd64-3.8创建 build\lib.win-amd64-3.8\blist复制 blist_btuple.py -> build\lib.win-amd64-3.8\blist复制 blist_sorteddict.py -> build\lib.win-amd64-3.8\blist复制 blist_sortedlist.py -> build\lib.win-amd64-3.8\blist复制 blist__init__.py -> build\lib.win-amd64-3.8\blist运行 build_ext构建 'blist._blist' 扩展创建 build\temp.win-amd64-3.8创建 build\temp.win-amd64-3.8\Release创建 build\temp.win-amd64-3.8\Release\blistC:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.23.28105\bin\HostX86\x64\cl.exe/c/nologo/Ox/W3/GL/DNDEBUG/MD-DBLIST_FLOAT_RADIX_SORT=1 -Ic:\users\matthias.reichenberg\appdata\local\programs\python\python38\include -Ic:\users\matthias.reichenberg\appdata\local\programs\python\python38\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.23.28105\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.23.28105\include"/Tcblist/_blist.c/Fobuild\temp.win-amd64-3.8\Release\blist/_blist.obj_blist.cc:\users\matthias.reichenberg\appdata\local\programs\python\python38\include\pyconfig.h(59):致命错误 C1083:无法打开包含文件:'io.h':没有这样的文件或目录错误:命令 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.23.28105\bin\HostX86\x64\cl.exe' 失败,退出状态为 2---------------------------错误:命令出错,退出状态为 1:'c:\users\matthias.reichenberg\appdata\local\programs\python\python38\python.exe' -u -c 'import sys, setuptools, tokenize;sys.argv[0] = '"'"'C:\Users\matthias.reichenberg\AppData\Local\Temp\pip-install-f99484f4\blist\setup.py'"'"';file='"'"'C:\Users\matthias.reichenberg\AppData\Local\Temp\pip-install-f99484f4\blist\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\matthias.reichenberg\AppData\Local\Temp\pip-record-we1u1k_w\install-record.txt' --single-version-externally-managed --compile --install-headers'c:\users\matthias.reichenberg\appdata\local\programs\python\python38\Include\blist' 检查日志以获取完整的命令输出.
ERROR: Command errored out with exit status 1: command: 'c:\users\matthias.reichenberg\appdata\local\programs\python\python38\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\matthias.reichenberg\AppData\Local\Temp\pip-install-f99484f4\blist\setup.py'"'"'; file='"'"'C:\Users\matthias.reichenberg\AppData\Local\Temp\pip-install-f99484f4\blist\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\matthias.reichenberg\AppData\Local\Temp\pip-record-we1u1k_w\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\matthias.reichenberg\appdata\local\programs\python\python38\Include\blist' cwd: C:\Users\matthias.reichenberg\AppData\Local\Temp\pip-install-f99484f4\blist\ Complete output (19 lines): running install running build running build_py creating build creating build\lib.win-amd64-3.8 creating build\lib.win-amd64-3.8\blist copying blist_btuple.py -> build\lib.win-amd64-3.8\blist copying blist_sorteddict.py -> build\lib.win-amd64-3.8\blist copying blist_sortedlist.py -> build\lib.win-amd64-3.8\blist copying blist__init__.py -> build\lib.win-amd64-3.8\blist running build_ext building 'blist._blist' extension creating build\temp.win-amd64-3.8 creating build\temp.win-amd64-3.8\Release creating build\temp.win-amd64-3.8\Release\blist C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.23.28105\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DBLIST_FLOAT_RADIX_SORT=1 -Ic:\users\matthias.reichenberg\appdata\local\programs\python\python38\include -Ic:\users\matthias.reichenberg\appdata\local\programs\python\python38\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.23.28105\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.23.28105\include" /Tcblist/_blist.c /Fobuild\temp.win-amd64-3.8\Release\blist/_blist.obj _blist.c c:\users\matthias.reichenberg\appdata\local\programs\python\python38\include\pyconfig.h(59): fatal error C1083: Cannot open include file: 'io.h': No such file or directory error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.23.28105\bin\HostX86\x64\cl.exe' failed with exit status 2 ----------------------------------------ERROR: Command errored out with exit status 1: 'c:\users\matthias.reichenberg\appdata\local\programs\python\python38\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\matthias.reichenberg\AppData\Local\Temp\pip-install-f99484f4\blist\setup.py'"'"'; file='"'"'C:\Users\matthias.reichenberg\AppData\Local\Temp\pip-install-f99484f4\blist\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\matthias.reichenberg\AppData\Local\Temp\pip-record-we1u1k_w\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\matthias.reichenberg\appdata\local\programs\python\python38\Include\blist' Check the logs for full command output.
推荐答案
问题是这样的:无法打开包含文件:'io.h':没有那个文件或目录错误
试试这个:无法打开包含文件:'io.h': 没有那个文件或目录
这篇关于无法安装“blist"为了安装 ElastAlert的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!