1. 준비할 파일 : 터미널에서 작업

python extractCurvesFromACVFile.py .Country.acv

python 파일 위치 : /System/Library/Frameworks/Python.framework/Versions/2.7/bin/python

2. extractCurvesFromACVFile.py 실행을 위해 python 패키지 설치

– 설치해야할 패키지 : numericalunits, scipy

numericalunits설치하려면 pip를 먼저 설치해야합니다.

3. pip 설치방법

sudo easy_install pip

4. numericalunits 설치하기

sudo pip install numericalunits

5. numpy 설치하기

sudo pip install numpy

6. scipy 설치하기

  • brew 설치
    /usr/bin/ruby -e "$(/usr/bin/curl -fsSL https://raw.github.com/mxcl/homebrew/master/Library/Contributions/install_homebrew.rb)"
  • Password 설정
    export PATH=/usr/local/bin:$PATH
  • gfortran 설치하기
    brew install gfortran
  • scipy 설치하기
    sudo pip install scipy
    
    

7. 참고사이트

<a href="http://www.thisisthegreenroom.com/2011/installing-python-numpy-scipy-matplotlib-and-ipython-on-lion/#homebrew" target="_blank">http://www.thisisthegreenroom.com/2011/installing-python-numpy-scipy-matplotlib-and-ipython-on-lion/#homebrew</a>

Categories:

Tags:

No responses yet

답글 남기기

이메일 주소는 공개되지 않습니다. 필수 필드는 *로 표시됩니다