science_rcn icon indicating copy to clipboard operation
science_rcn copied to clipboard

fatal error C1083: Cannot open include file: 'stdbool.h': No such file or directory

Open fjpinilla opened this issue 4 years ago • 0 comments

OS: Windows 10

While using Anaconda prompt, i created a new environment with

create -n rcn python=2.7

Then I try the install:

python setup.py install

Finally get the following error: ... building '_dilation' extension

C:\Users\Pinilla\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -IC:\ProgramData\Anaconda3\envs\rcn_test1\include -IC:\ProgramData\Anaconda3\envs\rcn_test1\PC "-Ie:\downloads hdd\uned papers\rey-osterrieth\science_rcn-master\.eggs\numpy-1.16.6-py2.7-win-amd64.egg\numpy\core\include" /Tpscience_rcn/dilation/dilation.cc /Fobuild\temp.win-amd64-2.7\Release\science_rcn/dilation/dilation.obj

dilation.cc

e:\downloads hdd\uned papers\rey-osterrieth\science_rcn-master\.eggs\numpy-1.16.6-py2.7-win-amd64.egg\numpy\core\include\numpy\npy_1_7_deprecated_api.h(14) : Warning Msg: Using deprecated NumPy API, disable it with #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION

science_rcn/dilation/dilation.cc(8) : fatal error C1083: Cannot open include file: 'stdbool.h': No such file or directory

error: command 'C:\\Users\\Pinilla\\AppData\\Local\\Programs\\Common\\Microsoft\\Visual C++ for Python\\9.0\\VC\\Bin\\amd64\\cl.exe' failed with exit status 2

Tried installing latest version of Visual Studio and the MSVC por python as the setup.py suggests.

Any ideas?

fjpinilla avatar Dec 02 '20 13:12 fjpinilla