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:
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
atpy (which depends on asciitable [github link] )
If you have pip (see https://pypi.org/project/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
You can acquire the code with this clone command (see also Install pyspeckit via GitHub):
git clone git@github.com:pyspeckit/pyspeckit.git pyspeckit
cd pyspeckit
python setup.py install
Or you can Download the latest zip version, then extract and install using the standard python method (but the pip install version of this is easier):
wget --no-check-certificate https://github.com/pyspeckit/pyspeckit/archive/refs/heads/master.zip
unzip master.zip
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
.