Harvard:Biophysics 101/2009:Python: Difference between revisions
From OpenWetWare
Jump to navigationJump to search
Harriswang (talk | contribs) (New page: {{Template:Harvard_Biophysics_101:2009}} <div style="padding: 10px; width: 720px; border: 5px solid #DDDDFF;"> ==Python== '''Installation''' *[http://python.org/download/ Main download p...) |
Harriswang (talk | contribs) No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 29: | Line 29: | ||
'''Pre-installation dependencies''' | '''Pre-installation dependencies''' | ||
*Python (see above) | *Python (see above) | ||
*[http://www.egenix.com/files/python/mxTextTools.html mxTextTools] ([http://www.egenix.com/files/python/egenix-mx-base- | *[http://www.egenix.com/files/python/mxTextTools.html mxTextTools] ([http://www.egenix.com/files/python/egenix-mx-base-3.1.2.win32-py2.6.msi direct link to Windows installer]) | ||
*[http://numpy.scipy.org/#older_array Numeric 24.2] ([http:// | *[http://numpy.scipy.org/#older_array Numeric 24.2] ([http://sourceforge.net/projects/numpy/files/NumPy/1.3.0/numpy-1.3.0-win32-superpack-python2.6.exe/download direct link to Windows installer]) | ||
'''Windows Installation''' | '''Windows Installation''' |
Latest revision as of 12:41, 13 September 2009
Python
Installation
Reading Material
- Python Tutorial
- Python Style Guide
- Comparing Python to other languages
- Perl-to-Python
- Dive Into Python (for experienced programmers)
- Beginner's Guide (includes instructions for non-programmers)
- Learning Python (Online textbook for beginners)
- Py Reg Ex (regular expressions)
- Python Lib Ref
- Charming Python (advanced topics)
BioPython
Documentation
Pre-installation dependencies
- Python (see above)
- mxTextTools (direct link to Windows installer)
- Numeric 24.2 (direct link to Windows installer)
Windows Installation
OS X Installation
- Install xcode tools (either download ~1GB from the developer site) or install from the OS X installation DVD.
- Download the three dependencies and extract them (double click on the file, or use "tar -xzf filename.tar.gz" for tar.gz files, or "tar -xf filename.tar")
- For each of the three packages, use a terminal window (/Applications/Utilities/Terminal) to enter the package directory (created when you extracted the files) and run the following commands:
python setup.py build python setup.py install
- Download and extract BioPython source file (latest tar.gz file)
- From the extracted directory, run the following commands:
python setup.py build python setup.py test python setup.py install
Linux