Installation and Requirements ============================= .. hint:: You can *easy_install* or *pip_install* pyspeckit: :: pip install pyspeckit easy_install pyspeckit ------- PySpecKit requires at least the basic scientific packages: * `numpy `_ * `matplotlib `_ * `mpfit is included `_ * `scipy `_ is optional. It is only required for RADEX grid interpolation and certain types of optimization * python2.7 or `ordereddict `_ for model parameter storage You'll most likely want at least one of the following packages to enable `file reading `_ * astropy_ >=0.4 * `pyfits `_ >=2.4 * `atpy `_ (which depends on `asciitable `_ [`github link `_] ) * `hdf5 `_ If you have pip (see http://pypi.python.org/pypi/pyspeckit), you can install with:: pip install pyspeckit Or the most recent version:: pip install https://bitbucket.org/pyspeckit/pyspeckit/get/master.tar.gz You can acquire the code with this clone command:: git clone git@bitbucket.org:pyspeckit/pyspeckit.git pyspeckit cd pyspeckit python setup.py install Or you can `Download the latest tarball version `_, then extract and install using the standard python method (but the pip install version of this is easier):: wget --no-check-certificate https://bitbucket.org/pyspeckit/pyspeckit/get/master.tar.gz tar -xzf master.tar.gz cd pyspeckit-pyspeckit-[commit] python setup.py install You can also check out the `source code `_ .. note :: If you use `easy_install pyspeckit` with the Enthought Python Distribution, you will most likely get a SandboxViolation error. You can get around this by using `python setup.py install` or `pip install pyspeckit`.