Products | Versions |
---|---|
Spotfire Analyst | 10.0.0 and higher |
When attempting to build an SPK containing Python packages through the TIBCO Spotfire Analyst Python Interpreter from a command line prompt, it fails with the error:
"Cannot open include file: 'Python.h': No such file or directory"
The same error also occur when attempting to install python packages to the Spotfire Analyst Python Interpreter from a command line prompt:
--------------------------------
>"C:\Users\lizliu\AppData\Local\TIBCO\Spotfire\10.10.2\Modules\Python Interpreter_3.810.10300.14\python\python.exe" -m pip install cvxpy
........
scsmodule.c
src/scsmodule.c(1): fatal error C1083: Cannot open include file: 'Python.h': No such file or directory
{}
{}
error: Command "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DPYTHON -DCTRLC=1 -DDLONG=1 -DCOPYAMATRIX -Iscs/include -Iscs/linsys -Iscs/linsys/cpu/direct/ -Iscs/linsys/external/amd -Iscs/linsys/external/dqlql -IC:\Users\lizliu\AppData\Local\Temp\pip-build-env-cg0ot51u\overlay\Lib\site-packages\numpy\core\include -IC:\Users\lizliu\AppData\Local\TIBCO\Spotfire\10.10.2\Modules\Python Interpreter_3.810.10300.14\python\include -IC:\Users\lizliu\AppData\Local\TIBCO\Spotfire\10.10.2\Modules\Python Interpreter_3.810.10300.14\python\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include -IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt /Tcsrc/scsmodule.c /Fobuild\temp.win-amd64-3.8\Release\src/scsmodule.obj -O3" failed with exit status 2
--------------------------------
The cause is that the include file "Python.h" is required by Python to build or install python packages from source but the TIBCO Spotfire Analyst Python Interpreter does not have access to this out of the box.