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
```
2017-02-09 23:29:43 -08:00
If you are using Anaconda, you may also need to run the following.
```
conda install libgcc
```
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
```
2017-02-12 15:17:58 -08:00
## Optional - web UI
Ray's web UI requires **Python 3** . To enable the web UI to work, install these
Python packages.
```
pip install aioredis asyncio websockets
```
Then install
[polymer ](https://www.polymer-project.org/1.0/docs/tools/polymer-cli ), which
also requires [Node.js ](https://nodejs.org/en/download/ ) and
[Bower ](http://bower.io/#install-bower ).
Once you've installed Polymer, run the following.
```
cd ray/webui
bower install
```
Then while Ray is running, you should be able to view the web UI at
`http://localhost:8080` .