may be setup these
export CFLAGS="-arch i386 -arch x86_64"
export FFLAGS="-m32 -m64"
export LDFLAGS="-Wall -undefined dynamic_lookup -bundle -arch i386 -arch x86_64"
export CC=gcc
export CXX="g++ -arch i386 -arch x86_64"
brew install gfortran
1. setup python3.4 using dmg files
2. build dependent package
All package download from https://pypi.python.org/pypi/
atlas (0.27.0)
Cython (0.20.1)
freetype-py (0.4.1)
ipython (2.0.0)
matplotlib (1.3.1)
nose (1.3.1)
pip (1.5.4)
pyparsing (2.0.2)
python-dateutil (2.2)
setuptools (3.4.4)
six (1.6.1)
tornado (3.2)
and using these commands
python setup.py build
sudo python setup.py install
Then using brew install gfortan
3. build machine learning package
numpy (1.8.1)
scipy (0.13.3)
scikit-learn (0.15-git)
and using these commands
python setup.py build
sudo python setup.py install
ref:
http://www.newcenturygroup.cn/search/blog.hyperjeff.net/?p=160-numpy%20user%20guide-2.html
http://stackoverflow.com/questions/23095915/installing-scikit-learn-in-mac-wrong-xcode-detected
http://blog.csdn.net/memray/article/details/12325377
http://thismodernphysics.wordpress.com/2014/01/16/installing-python/
mac osx 10.9 建立机器学习环境(python3.4),布布扣,bubuko.com
mac osx 10.9 建立机器学习环境(python3.4)
原文地址:http://blog.csdn.net/cheneywh/article/details/36487669