2016-07-28 20:47:37 -07:00
# Installation on Ubuntu
2016-07-08 20:03:21 -07:00
2016-12-30 00:29:03 -08:00
Ray should work with Python 2 and Python 3. We have tested Ray on Ubuntu 14.04
2016-11-12 19:37:20 -08:00
and Ubuntu 16.04
2016-07-08 20:03:21 -07:00
2016-07-28 20:47:37 -07:00
## Dependencies
2016-07-08 20:03:21 -07:00
2016-11-12 19:37:20 -08:00
To install Ray, first install the following dependencies. We recommend using
[Anaconda ](https://www.continuum.io/downloads ).
2016-07-08 20:03:21 -07:00
```
sudo apt-get update
2017-01-19 20:27:46 -08:00
sudo apt-get install -y cmake build-essential autoconf curl libtool libboost-all-dev unzip python-dev python-pip # If you're using Anaconda, then python-dev and python-pip are unnecessary.
2016-11-12 19:37:20 -08:00
2017-01-08 17:30:06 -08:00
pip install numpy cloudpickle funcsigs colorama psutil redis
2016-07-08 20:03:21 -07:00
```
2016-11-12 19:37:20 -08:00
# Install Ray
2016-07-08 20:03:21 -07:00
2016-12-30 00:29:03 -08:00
Ray can be built from the repository as follows.
2016-07-08 20:03:21 -07:00
```
2016-12-30 00:29:03 -08:00
git clone https://github.com/ray-project/ray.git
2017-01-19 20:27:46 -08:00
cd ray/python
2016-12-31 17:53:53 -08:00
python setup.py install --user
2016-07-08 20:03:21 -07:00
```
2016-07-28 20:47:37 -07:00
## Test if the installation succeeded
2016-07-08 20:03:21 -07:00
2016-11-12 19:37:20 -08:00
To test if the installation was successful, try running some tests. This assumes
that you've cloned the git repository.
2016-07-08 20:03:21 -07:00
```
2016-11-12 19:37:20 -08:00
python test/runtest.py
2016-07-08 20:03:21 -07:00
```