Hi all,
I want to compile scikit-learn under python 3.4, the following commands are
what I'm doing:
alias python=python3
sudo apt-get install python3-numpy python3-scipy python3-matplotlib
ipython3 ipython3-notebook python3-pandas python-sympy python3-nose
sudo apt-get install build-essential python3-dev python3-setuptools
python3-numpy python3-scipy libatlas-dev libatlas3gf-base
sudo update-alternatives --set libblas.so.3
/usr/lib/atlas-base/atlas/libblas.so.3
sudo update-alternatives --set liblapack.so.3
/usr/lib/atlas-base/atlas/liblapack.so.3
sudo apt-get install gfortran
git clone [email protected]:scikit-learn/scikit-learn.git
cd scikit-learn
python setup.py install --user
nosetests3 -v sklearn
All unittests have passed, the compilation seems successful.
But when I cd to the source directory, and use make to build the source
code, it fails.
cd ~/local/src/scikit-learn
make
The messages on screen are as follows:
compile options: *'-I/usr/lib/python2.7/*dist-packages/numpy/core/include
-I/usr/lib/python2.7/dist-packages/numpy/core/include
-I/usr/include/python2.7 -c'
x86_64-linux-gnu-gcc: sklearn/__check_build/_check_build.c
sklearn/__check_build/_check_build.c:4:20: fatal error: *Python.h: No such
file or directory*
#include "Python.h"
^
compilation terminated.
sklearn/__check_build/_check_build.c:4:20: fatal error: Python.h: No such
file or directory
#include "Python.h"
It seems the compiler is using python 2.7 header files, but I didn't
install python-dev, instead, I installed python3-dev, this is why the build
failed.
Does anybody has any ideas to fix the 'make' process?
--
My tech blog: http://www.soulmachine.me
My GitHub: https://github.com/soulmachine
My LinkedIn: http://www.linkedin.com/in/soulmachine/
My Sina Weibo: http://weibo.com/soulmachine
------------------------------------------------------------------------------
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls.
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
_______________________________________________
Scikit-learn-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general