首页 > 编程语言 > 详细

mac osx 10.9 建立机器学习环境(python3.4)

时间:2014-07-03 13:42:46      阅读:473      评论:0      收藏:0      [点我收藏+]


https://pypi.python.org/pypi/


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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!