You should install the proper python libraries. It's probably called python2.7-dev. You should also have the equivalent -dev packages for numpy and scipy, I think.
2011/12/1 María Helena Mejía Salazar <[email protected]>: > Hi, > > I can not install the latest version. I downloaded scikit-learn-0.9 and then > I am running: sudo python setup.py install and I am having the following > problems. What is wrong? could you help? > > Thanks > > .... > Customize UnixCCompiler using build_ext > resetting extension 'sklearn.svm.liblinear' language from 'f77' to 'c++'. > customize UnixCCompiler > customize UnixCCompiler using build_ext > customize GnuFCompiler > Could not locate executable g77 > Found executable /usr/bin/f77 > gnu: no Fortran 90 compiler found > gnu: no Fortran 90 compiler found > customize IntelFCompiler > Could not locate executable ifort > Could not locate executable ifc > customize LaheyFCompiler > Could not locate executable lf95 > customize PGroupFCompiler > Could not locate executable pgf90 > Could not locate executable pgf77 > customize AbsoftFCompiler > Could not locate executable f90 > absoft: no Fortran 90 compiler found > absoft: no Fortran 90 compiler found > customize NAGFCompiler > Found executable /usr/bin/f95 > customize VastFCompiler > customize CompaqFCompiler > Could not locate executable fort > customize IntelItaniumFCompiler > Could not locate executable efort > Could not locate executable efc > customize IntelEM64TFCompiler > customize Gnu95FCompiler > Found executable /usr/bin/gfortran > customize Gnu95FCompiler > customize Gnu95FCompiler using build_ext > building 'sklearn.check_build._check_build' extension > compiling C sources > C compiler: gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall > -Wstrict-prototypes -fPIC > > compile options: '-I/usr/lib/pymodules/python2.7/numpy/core/include > -I/usr/lib/pymodules/python2.7/numpy/core/include -I/usr/include/python2.7 > -c' > gcc: sklearn/check_build/_check_build.c > sklearn/check_build/_check_build.c:4:20: fatal error: Python.h: No such file > or directory > compilation terminated. > sklearn/check_build/_check_build.c:4:20: fatal error: Python.h: No such file > or directory > compilation terminated. > error: Command "gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 > -Wall -Wstrict-prototypes -fPIC > -I/usr/lib/pymodules/python2.7/numpy/core/include > -I/usr/lib/pymodules/python2.7/numpy/core/include -I/usr/include/python2.7 > -c sklearn/check_build/_check_build.c -o > build/temp.linux-i686-2.7/sklearn/check_build/_check_build.o" failed with > exit status 1 > > > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure > contains a definitive record of customers, application performance, > security threats, fraudulent activity, and more. Splunk takes this > data and makes sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-novd2d > _______________________________________________ > Scikit-learn-general mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/scikit-learn-general > > -- - Alexandre ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d _______________________________________________ Scikit-learn-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/scikit-learn-general
