您的位置:首页 > 编程语言 > Python开发

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

2014-07-02 22:45 253 查看
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/
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: