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.