Actions

Very simple Python

From AstroEd

Revision as of 04:24, 7 February 2013 by WikiSysop (talk | contribs) (Installing Python on your computer)

Installing Python on your computer

Python is open source software availble for free from www.python.org. Version 2.7 is the current mature version that is widely supportly by other add-on modules, and is the one for which examples here are written. Python 3 is still under development and it currently lacks packages that are necessary for astronomy.

Install version 2.7 using the method that's appropriate for the operating system on your computer from this link:

www.python.org/download/

  • Windows
  • MacOS
  • Linux operating systems you will usually have Python already installed. If modules are missing simply use the package installer from your distribution for most of them, or the command line "easy_install package_name" if it is not in the distribution archives.

Using Python in real time

Using Python code as a standalone program