Reputation: 2103
From the windows command prompt when I try to run the set up I get this error:
Found executable C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\BIN\cl.e
xe
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\BIN\cl.exe /c /nologo /Ox
/MD /W3 /GS- /DNDEBUG -IC:\Python27\lib\site-packages\numpy\core\include -IC:\P
ython27\lib\site-packages\numpy\core\include -IC:\Python27\include -IC:\Python27
\PC /Tcskimage\exposure\unwrap_2d_ljmu.c /Fobuild\temp.win32-2.7\Release\skimage
\exposure\unwrap_2d_ljmu.obj
unwrap_2d_ljmu.c
skimage\exposure\unwrap_2d_ljmu.c(181) : error C2065: 'M_PI' : undeclared identi
fier
skimage\exposure\unwrap_2d_ljmu.c(182) : error C2065: 'M_PI' : undeclared identi
fier
skimage\exposure\unwrap_2d_ljmu.c(194) : error C2065: 'M_PI' : undeclared identi
fier
skimage\exposure\unwrap_2d_ljmu.c(195) : error C2065: 'M_PI' : undeclared identi
fier
skimage\exposure\unwrap_2d_ljmu.c(621) : error C2065: 'M_PI' : undeclared identi
fier
skimage\exposure\unwrap_2d_ljmu.c(690) : error C2065: 'M_PI' : undeclared identi
fier
error: Command "C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\BIN\cl.ex
e /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -IC:\Python27\lib\site-packages\numpy\cor
e\include -IC:\Python27\lib\site-packages\numpy\core\include -IC:\Python27\inclu
de -IC:\Python27\PC /Tcskimage\exposure\unwrap_2d_ljmu.c /Fobuild\temp.win32-2.7
\Release\skimage\exposure\unwrap_2d_ljmu.obj" failed with exit status 2
Does anyone know what I can do to get the scikit installed? Thanks!
Upvotes: 0
Views: 1780
Reputation: 10459
I installed it by pip (also on windows) and it installed fine
pip install -U scikit-learn
check about pip, and installing pip on windows
update
Do you have all dependencies ? In log above i see NumPy but no SciPy. Maybe that's the problem.
solution
SciKit-Learn "unwrap_2d_ljmu.c" file is messed up.
Add _USE_MATH_DEFINES
identifier in it.
check undeclared identifier and math constants
Upvotes: 1