使用以下设置我正在尝试安装scikit-learn - 最终目标是使用scikit-learn和python note book一起进行数据操作。
尝试了pip相同的错误,尝试了easy_install相同的错误,尝试了scipy超级包但它使用了64位python发行版并不能与旁边的熊猫一起工作。因此,使用当前设置如何让easy_install为scikit工作。发生故障表明它无法找到C ++头文件如何解决此问题。which python
/Library/Frameworks/Python.framework/Versions/Current/bin/python
python
Enthought Python Distribution (EPD) free version -- www.enthought.com
Version: 7.3-2 (32-bit)
(type 'upgrade' or see www.enthought.com/epd/upgrade to get the full EPD)
Python 2.7.3 |EPD_free 7.3-2 (32-bit)| (default, Apr 12 2012, 11:28:34)
[GCC 4.0.1 (Apple Inc. build 5493)] on darwin
Python version 2.7.3
scipy==0.10.1
numpy==1.6.1
pandas==0.10.1
easy_install -U scikit-learn
Searching for scikit-learn
Reading http://pypi.python.org/simple/scikit-learn/
Reading http://scikit-learn.org
Reading http://sourceforge.net/projects/scikit-learn/files/
Reading http://scikit-learn.sourceforge.net
Best match: scikit-learn 0.13.1
Downloading http://pypi.python.org/packages/source/s/scikit-learn/scikit-learn-0.13.1.tar.gz#md5=acba398e1d46274b8470f40d0926e6a4
Processing scikit-learn-0.13.1.tar.gz
Writing /tmp/easy_install-FrggHE/scikit-learn-0.13.1/setup.cfg
Running scikit-learn-0.13.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-FrggHE/scikit-learn-0.13.1/egg-dist-tmp-mGaDaU
Partial import of sklearn during the build process.
In file included from /private/tmp/easy_install-FrggHE/scikit-learn-0.13.1/sklearn/svm/src/libsvm/libsvm_template.cpp:6:
/private/tmp/easy_install-FrggHE/scikit-learn-0.13.1/sklearn/svm/src/libsvm/svm.cpp:53:18: error: math.h: No such file or directory
/private/tmp/easy_install-FrggHE/scikit-learn-0.13.1/sklearn/svm/src/libsvm/svm.cpp:54:19: error: stdio.h: No such file or directory
..etc