Friday, March 22, 2013

Installing biopython on Mac OS X 10.5 and Mac OS X 10.8

Installing on Mac OS X 10.5

1. Install XCode
 - https://connect.apple.com/cgi-bin/WebObjects/MemberSite.woa/wa/getSoftware?bundleID=20414 from apple
 - Just use default install 

2.  Install NumPy

 - download http://sourceforge.net/projects/numpy/files/
 - double click on the file and it will unzip
 - I then placed the unzipped file on the desktop(shorter directory address)
 - then open terminal
 - navigate to the file
  - example
   cd /Users/computername/Desktop/numpy-1.7.0
 - then type in terminal python setup.py build (note this takes a little while to complete and as some  points it looks like to stalled.  Just wait.)
 - then type into terminal sudo python setup.py install

3. Install biopython

 - download source zip file from http://biopython.org/wiki/Download
 - double click on it and it will unzip
 - I then placed the unzipped file on the desktop(shorter directory address)
 - then open terminal
 - navigate to the file
 - type python setup.py build
 - python setup.py test
 - sudo python setup.py install



4. go to idle and test if you installed everything
>>> import numpy
>>> print numpy.__version__
1.7.0
>>> import Bio
>>> print Bio.__version__
1.61 

Installing on Mac OS X 10.8

1. Install XCode.
  - Download XCode from the Mac App Store and install

2. Install XCode the command line tools
  - Open XCode
  - Go to XCode on toolbar -> preferences -> Downloads -> click on install Command Line Tools
   - Command Line Tools are already installed on my computer therefore it says update


3. Install MacPorts
  - Download Mountain Lion MacPorts "pkg" installer

4.  Install NumPy

 - download http://sourceforge.net/projects/numpy/files/
 - double click on the file and it will unzip

 - I then placed the unzipped file on the desktop(shorter directory address)
 - then open terminal
 - navigate to the file
  - example
   cd /Users/computername/Desktop/numpy-1.7.0
 - then type in terminal python setup.py build (note this takes a little while to complete and as some  points it looks like to stalled.  Just wait.)
 - then type into terminal sudo python setup.py install

5. Install biopython
 - download source zip file from http://biopython.org/wiki/Download
 - double click on it and it will unzip
 - I then placed the unzipped file on the desktop(shorter directory address)
 - then open terminal
 - navigate to the file
 - type python setup.py build
 - python setup.py test
 - sudo python setup.py install



6. go to idle and test if you installed everything
>>> import numpy
>>> print numpy.__version__
1.7.0
>>> import Bio
>>> print Bio.__version__
1.61