I'm trying to install 'lws' using pip, but when I run "pip install lws" I get an error, saying
lws.bycython.cpp(196): fatal error C1083: Cannot open include file: 'longintrepr.h': No such file or directory
"
lws.bycython.cpp(196): fatal error C1083: Cannot open include file: 'longintrepr.h': No such file or directory
"
The full output is listed below.
I uninstalled Visual Studio 2022 after uninstalling all of its workloads. After that I got the error "Microsoft Visual C++ 14.0 or greater is required"
After reinstalling Visual Studio 2022 and the I received the Visual Studio Build Tools I received the error again,
lws.bycython.cpp(196): fatal error C1083: Cannot open include file: 'longintrepr.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.39.33519\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
```I've looked on my computer and the file "cl.exe" exists right where the error says it should be.
What more can be done? Perhaps something is messed up in the registry?
The full input/output from both command line and powershell:
PS C:\Users\user> pip install lws
Collecting lws
Using cached lws-1.2.8.tar.gz (140 kB)
Preparing metadata (setup.py) ... done
Requirement already satisfied: numpy in c:\users\skeev\appdata\local\programs\python\python311\lib\site-packages (from lws) (1.26.4)
Building wheels for collected packages: lws
Building wheel for lws (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [13 lines of output]
```powershell
running bdist_wheel
running build
running build_ext
building 'lws' extension
creating build
creating build\temp.win-amd64-cpython-311
creating build\temp.win-amd64-cpython-311\Release
creating build\temp.win-amd64-cpython-311\Release\lwslib
"C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.39.33519\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -Ilwslib/ -IC:\Users\skeev\AppData\Local\Programs\Python\Python311\Lib\site-packages\numpy\core\include -IC:\Users\skeev\AppData\Local\Programs\Python\Python311\include -IC:\Users\skeev\AppData\Local\Programs\Python\Python311\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.39.33519\include" "-IC:\Program Files (x86)\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" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" /EHsc /Tplws.bycython.cpp /Fobuild\temp.win-amd64-cpython-311\Release\lws.bycython.obj -O3
cl : Command line warning D9002 : ignoring unknown option '-O3'
lws.bycython.cpp
lws.bycython.cpp(196): fatal error C1083: Cannot open include file: 'longintrepr.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.39.33519\\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 lws
Running setup.py clean for lws
Failed to build lws
ERROR: Could not build wheels for lws, which is required to install pyproject.toml-based projects