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


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/


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值