2016-07-08 20:03:21 -07:00
|
|
|
## Installation on Mac OS X
|
|
|
|
|
|
|
|
Ray must currently be built from source.
|
|
|
|
|
|
|
|
### Clone the Ray repository
|
|
|
|
|
|
|
|
```
|
|
|
|
git clone https://github.com/amplab/ray.git
|
|
|
|
```
|
|
|
|
|
|
|
|
### Dependencies
|
|
|
|
|
2016-07-10 15:06:44 -07:00
|
|
|
First install the dependencies using brew. We currently do not support Python 3.
|
|
|
|
If you have trouble installing the Python packages, you may find it easier to
|
|
|
|
install [Anaconda](https://www.continuum.io/downloads).
|
2016-07-08 20:03:21 -07:00
|
|
|
|
|
|
|
```
|
|
|
|
brew update
|
|
|
|
brew install git cmake automake autoconf libtool boost libjpeg graphviz
|
|
|
|
sudo easy_install pip
|
|
|
|
sudo pip install ipython --user
|
2016-07-10 15:06:44 -07:00
|
|
|
sudo pip install numpy typing funcsigs subprocess32 protobuf==3.0.0a2 boto3 botocore Pillow colorama graphviz --ignore-installed six
|
2016-07-08 20:03:21 -07:00
|
|
|
```
|
|
|
|
|
|
|
|
### Build
|
|
|
|
|
2016-07-11 00:22:05 -07:00
|
|
|
Then run the setup scripts.
|
2016-07-08 20:03:21 -07:00
|
|
|
|
|
|
|
```
|
|
|
|
cd ray
|
2016-07-11 00:22:05 -07:00
|
|
|
./setup.sh # Build all necessary third party libraries (e.g., gRPC and Apache Arrow). This may take about 10 minutes.
|
2016-07-10 15:06:44 -07:00
|
|
|
./build.sh # Build Ray.
|
|
|
|
source setup-env.sh # Add Ray to your Python path.
|
2016-07-08 20:03:21 -07:00
|
|
|
```
|
|
|
|
|
|
|
|
For convenience, you may also want to add the line `source
|
|
|
|
"$RAY_ROOT/setup-env.sh"` to your `~/.bashrc` file manually, where `$RAY_ROOT`
|
|
|
|
is the Ray directory (e.g., `/home/ubuntu/ray`).
|
|
|
|
|
|
|
|
### Test if the installation succeeded
|
|
|
|
|
|
|
|
To test if the installation was successful, try running some tests.
|
|
|
|
|
|
|
|
```
|
|
|
|
python test/runtest.py # This tests basic functionality.
|
|
|
|
python test/array_test.py # This tests some array libraries.
|
|
|
|
```
|