The easiest way to get all these dependencies installed is to use the Anaconda python distribution.
To install xray, use pip:
pip install xray
If you don’t already have recent versions of numpy and pandas installed, installing xray will attempt to automatically update them. This may or may not succeed: you probably want to ensure you have an up-to-date installs of numpy and pandas before attempting to install xray.