Installation and Requirements¶
Hint
You can pip_install pyspeckit to get the latest release version:
pip 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 with either of these commands:
pip install https://github.com/pyspeckit/pyspeckit/archive/master.zip
pip install https://bitbucket.org/pyspeckit/pyspeckit/get/master.tar.gz
You can acquire the code with this clone command (see also Install pyspeckit via GitHub):
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
.
Note
pyspeckit is hosted on both bitbucket and github. Both versions are kept up to date, so it should not matter which one you choose to install.