Installation¶
Installing the code with Anaconda¶
Anaconda is probably the easiest way to install pdspy because the dependency GALARIO is easily conda-installable. pdspy is available on the conda-forge channel and can be installed from the command line with:
conda install pdspy -c conda-forge
Installing the code with pip¶
In a terminal, run:
pip install pdspy
Install GALARIO. Unfortunately, GALARIO is not pip-installable by default, so you will need to follow the instructions here. Alternatively, a pip-installable version of GALARIO is in the works and can be installed like so:
pip install git+https://github.com/psheehan/galario.git@add_unstructured
but note that this is a fork of GALARIO and is not yet completely merged.
Installing the code manually¶
If you would like the most cutting-edge version of pdspy, with updates that go beyond the pre-packaged versions, you can download and compile the code yourself following these instructions:
Download the code from this webpage. Git clone is recommended if you would like to be able to pull updates:
git clone https://github.com/psheehan/pdspy.git
Install the Python dependencies:
numpy
scipy
matplotlib
emcee
corner
hyperion
h5py
mpi4py
galario
Cython
astropy < 4.0
schwimmbad
dynesty
In a terminal, go to the directory where the code was downloaded, and into the code directory. Run:
python setup.py install
or
pip install -e .
or
conda build pdspy -c conda-forge conda install pdspy -c conda-forge --use-local
depending on what method you prefer best.