LC.exe exited with code -1 报错

本文介绍了解决VS项目中出现LC.exeexitedwithcode-1错误的方法,通过删除并重新编译项目解决了该问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

vs项目运行是报LC.exe exited with code -1错误。现在什么鬼都能在度娘里面找到了。

 

删掉重新编译OK啦!

转载于:https://www.cnblogs.com/Vam8023/p/5145205.html

Microsoft Windows [版本 10.0.22631.4890] (c) Microsoft Corporation。保留所有权利。 C:\Users\LGM>pip install glpk Looking in indexes: https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple Collecting glpk Using cached https://mirrors.tuna.tsinghua.edu.cn/pypi/web/packages/62/7f/a23262ffe0c8363c242bdc140d5895d96144741edaffc8bcc82e6bc72085/glpk-0.4.8.tar.gz (160 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Building wheels for collected packages: glpk Building wheel for glpk (pyproject.toml) ... error error: subprocess-exited-with-error × Building wheel for glpk (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [11 lines of output] running bdist_wheel running build running build_ext building 'glpk' extension creating build\temp.win-amd64-cpython-313\Release\src "D:\develop\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.43.34808\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -DVERSION_NUMBER=\"\\\"0.4.8\\\"\" "-ID:\develop\Python\Python 3.13.2\include" "-ID:\develop\Python\Python 3.13.2\Include" "-ID:\develop\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.43.34808\include" "-ID:\develop\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt" /Tcsrc\2to3.c /Fobuild\temp.win-amd64-cpython-313\Release\src\2to3.obj 2to3.c "D:\develop\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.43.34808\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -DVERSION_NUMBER=\"\\\"0.4.8\\\"\" "-ID:\develop\Python\Python 3.13.2\include" "-ID:\develop\Python\Python 3.13.2\Include" "-ID:\develop\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.43.34808\include" "-ID:\develop\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt" /Tcsrc\bar.c /Fobuild\temp.win-amd64-cpython-313\Release\src\bar.obj bar.c C:\Users\LGM\AppData\Local\Temp\pip-install-lyopgudc\glpk_61bd5779471d4bf7a2ee00d38b4876cf\src\lp.h(24): fatal error C1083: 无法打开包括文件: “glpk.h”: No such file or directory error: command 'D:\\develop\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.43.34808\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2 [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for glpk Failed to build glpk ERROR: Failed to build installable wheels for some pyproject.toml based projects (glpk) C:\Users\LGM>
03-12
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值