Installing Ray#

Ray currently officially supports x86_64, aarch64 (ARM) for Linux, and Apple silicon (M1) hardware. Ray on Windows is currently in beta.

Official Releases#

From Wheels#

You can install the latest official version of Ray from PyPI on Linux, Windows, and macOS by choosing the option that best matches your use case.

For machine learning applications

pip install -U "ray[data,train,tune,serve]"

# For reinforcement learning support, install RLlib instead.
# pip install -U "ray[rllib]"

For general Python applications

pip install -U "ray[default]"

# If you don't want Ray Dashboard or Cluster Launcher, install Ray with minimal dependencies instead.
# pip install -U "ray"

Command

Installed components

pip install -U "ray"

Core

pip install -U "ray[default]"

Core, Dashboard, Cluster Launcher

pip install -U "ray[data]"

Core, Data

pip install -U "ray[train]"

Core, Train

pip install -U "ray[tune]"

Core, Tune

pip install -U "ray[serve]"

Core, Dashboard, Cluster Launcher, Serve

pip install -U "ray[serve-grpc]"

Core, Dashboard, Cluster Launcher, Serve with gRPC support

pip install -U "ray[rllib]"

Core, Tune, RLlib

pip install -U "ray[all]"

Core, Dashboard, Cluster Launcher, Data, Train, Tune, Serve, RLlib

Tip

You can combine installation extras. For example, to install Ray with Dashboard, Cluster Launcher, and Train support, you can run:

pip install -U "ray[default,train]"

Daily Releases (Nightlies)#

You can install the nightly Ray wheels via the following links. These daily releases are tested via automated tests but do not go through the full release process. To install these wheels, use the following pip command and wheels:

# Clean removal of previous install
pip uninstall -y ray
# Install Ray with support for the dashboard + cluster launcher
pip install -U "ray[default] @ LINK_TO_WHEEL.whl"

# Install Ray with minimal dependencies
# pip install -U LINK_TO_WHEEL.whl

Note

On Windows, support for multi-node Ray clusters is currently experimental and untested. If you run into issues please file a report at ray-project/ray#issues.

Note

Usage stats collection is enabled by default (can be disabled) for nightly wheels including both local clusters started via ray.init() and remote clusters via cli.

Note

Python 3.11 support is experimental.

Installing from a specific commit#

You can install the Ray wheels of any particular commit on master with the following template. You need to specify the commit hash, Ray version, Operating System, and Python version:

pip install https://s3-us-west-2.amazonaws.com/ray-wheels/master/{COMMIT_HASH}/ray-{RAY_VERSION}-{PYTHON_VERSION}-{PYTHON_VERSION}-{OS_VERSION}.whl

For example, here are the Ray 3.0.0.dev0 wheels for Python 3.9, MacOS for commit 4f2ec46c3adb6ba9f412f09a9732f436c4a5d0c9:

pip install https://s3-us-west-2.amazonaws.com/ray-wheels/master/4f2ec46c3adb6ba9f412f09a9732f436c4a5d0c9/ray-3.0.0.dev0-cp39-cp39-macosx_10_15_x86_64.whl

There are minor variations to the format of the wheel filename; it’s best to match against the format in the URLs listed in the Nightlies section. Here’s a summary of the variations:

  • For MacOS, commits predating August 7, 2021 will have macosx_10_13 in the filename instead of macosx_10_15.

M1 Mac (Apple Silicon) Support#

Ray supports machines running Apple Silicon (such as M1 macs). Multi-node clusters are untested. To get started with local Ray development:

  1. Install miniforge.

    • wget https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-MacOSX-arm64.sh

    • bash Miniforge3-MacOSX-arm64.sh

    • rm Miniforge3-MacOSX-arm64.sh # Cleanup.

  2. Ensure you’re using the miniforge environment (you should see (base) in your terminal).

    • source ~/.bash_profile

    • conda activate

  3. Install Ray as you normally would.

    • pip install ray

Windows Support#

Windows support is in Beta. Ray supports running on Windows with the following caveats (only the first is Ray-specific, the rest are true anywhere Windows is used):

  • Multi-node Ray clusters are untested.

  • Filenames are tricky on Windows and there still may be a few places where Ray assumes UNIX filenames rather than Windows ones. This can be true in downstream packages as well.

  • Performance on Windows is known to be slower since opening files on Windows is considerably slower than on other operating systems. This can affect logging.

  • Windows does not have a copy-on-write forking model, so spinning up new processes can require more memory.

Submit any issues you encounter to GitHub.

Installing Ray on Arch Linux#

Note: Installing Ray on Arch Linux is not tested by the Project Ray developers.

Ray is available on Arch Linux via the Arch User Repository (AUR) as python-ray.

You can manually install the package by following the instructions on the Arch Wiki or use an AUR helper like yay (recommended for ease of install) as follows:

yay -S python-ray

To discuss any issues related to this package refer to the comments section on the AUR page of python-ray here.

Installing From conda-forge#

Ray can also be installed as a conda package on Linux and Windows.

# also works with mamba
conda create -c conda-forge python=3.9 -n ray
conda activate ray

# Install Ray with support for the dashboard + cluster launcher
conda install -c conda-forge "ray-default"

# Install Ray with minimal dependencies
# conda install -c conda-forge ray

To install Ray libraries, use pip as above or conda/mamba.

conda install -c conda-forge "ray-data"   # installs Ray + dependencies for Ray Data
conda install -c conda-forge "ray-train"  # installs Ray + dependencies for Ray Train
conda install -c conda-forge "ray-tune"   # installs Ray + dependencies for Ray Tune
conda install -c conda-forge "ray-serve"  # installs Ray + dependencies for Ray Serve
conda install -c conda-forge "ray-rllib"  # installs Ray + dependencies for Ray RLlib

For a complete list of available ray libraries on Conda-forge, have a look at https://anaconda.org/conda-forge/ray-default

Note

Ray conda packages are maintained by the community, not the Ray team. While using a conda environment, it is recommended to install Ray from PyPi using pip install ray in the newly created environment.

Building Ray from Source#

Installing from pip should be sufficient for most Ray users.

However, should you need to build from source, follow these instructions for building Ray.

Docker Source Images#

Most users should pull a Docker image from the Ray Docker Hub.

  • The rayproject/ray images include Ray and all required dependencies. It comes with anaconda and various versions of Python.

  • The rayproject/ray-ml images include the above as well as many additional ML libraries.

  • The rayproject/base-deps and rayproject/ray-deps images are for the Linux and Python dependencies respectively.

Images are tagged with the format {Ray version}[-{Python version}][-{Platform}]. Ray version tag can be one of the following:

Ray version tag

Description

latest

The most recent Ray release.

x.y.z

A specific Ray release, e.g. 2.9.3

nightly

The most recent Ray development build (a recent commit from Github master)

The optional Python version tag specifies the Python version in the image. All Python versions supported by Ray are available, e.g. py38, py39 and py310. If unspecified, the tag points to an image using Python 3.8.

The optional Platform tag specifies the platform where the image is intended for:

Platform tag

Description

-cpu

These are based off of an Ubuntu image.

-cuXX

These are based off of an NVIDIA CUDA image with the specified CUDA version. They require the Nvidia Docker Runtime.

-gpu

Aliases to a specific -cuXX tagged image.

<no tag>

Aliases to -cpu tagged images. For ray-ml image, aliases to -gpu tagged image.

Example: for the nightly image based on Python 3.8 and without GPU support, the tag is nightly-py38-cpu.

If you want to tweak some aspect of these images and build them locally, refer to the following script:

cd ray
./build-docker.sh

Beyond creating the above Docker images, this script can also produce the following two images.

  • The rayproject/development image has the ray source code included and is setup for development.

  • The rayproject/examples image adds additional libraries for running examples.

Review images by listing them:

docker images

Output should look something like the following:

REPOSITORY                          TAG                 IMAGE ID            CREATED             SIZE
rayproject/ray                      latest              7243a11ac068        2 days ago          1.11 GB
rayproject/ray-deps                 latest              b6b39d979d73        8 days ago          996  MB
rayproject/base-deps                latest              5606591eeab9        8 days ago          512  MB
ubuntu                              focal               1e4467b07108        3 weeks ago         73.9 MB

Launch Ray in Docker#

Start out by launching the deployment container.

docker run --shm-size=<shm-size> -t -i rayproject/ray

Replace <shm-size> with a limit appropriate for your system, for example 512M or 2G. A good estimate for this is to use roughly 30% of your available memory (this is what Ray uses internally for its Object Store). The -t and -i options here are required to support interactive use of the container.

If you use a GPU version Docker image, remember to add --gpus all option. Replace <ray-version> with your target ray version in the following command:

docker run --shm-size=<shm-size> -t -i --gpus all rayproject/ray:<ray-version>-gpu

Note: Ray requires a large amount of shared memory because each object store keeps all of its objects in shared memory, so the amount of shared memory will limit the size of the object store.

You should now see a prompt that looks something like:

root@ebc78f68d100:/ray#

Test if the installation succeeded#

To test if the installation was successful, try running some tests. This assumes that you’ve cloned the git repository.

python -m pytest -v python/ray/tests/test_mini.py

Installed Python dependencies#

Our docker images are shipped with pre-installed Python dependencies required for Ray and its libraries.

We publish the dependencies that are installed in our ray and ray-ml Docker images for Python 3.9.

Ray version: nightly (3ad5adb)

adal==1.2.7
aiohttp==3.8.6
aiohttp-cors==0.7.0
aiosignal==1.3.1
annotated-types==0.6.0
anyio==3.7.1
applicationinsights==0.11.10
archspec @ file:///croot/archspec_1697725767277/work
argcomplete==1.12.3
async-timeout==4.0.3
attrs==21.4.0
azure-cli-core==2.40.0
azure-cli-telemetry==1.0.8
azure-common==1.1.28
azure-core==1.30.0
azure-identity==1.10.0
azure-mgmt-compute==23.1.0
azure-mgmt-core==1.4.0
azure-mgmt-network==19.0.0
azure-mgmt-resource==20.0.0
backoff==1.10.0
bcrypt==4.1.2
boltons @ file:///croot/boltons_1677628692245/work
boto3==1.26.76
botocore==1.29.165
Brotli @ file:///tmp/abs_ecyw11_7ze/croots/recipe/brotli-split_1659616059936/work
cachetools==5.3.2
certifi==2023.11.17
cffi @ file:///croot/cffi_1700254295673/work
charset-normalizer==3.3.2
click==8.1.7
cloudpickle==2.2.0
colorful==0.5.5
commonmark==0.9.1
conda @ file:///home/conda/feedstock_root/build_artifacts/conda_1707843821892/work
conda-content-trust @ file:///croot/conda-content-trust_1693490622020/work
conda-libmamba-solver @ file:///croot/conda-libmamba-solver_1706733287605/work/src
conda-package-handling @ file:///croot/conda-package-handling_1690999929514/work
conda_package_streaming @ file:///croot/conda-package-streaming_1690987966409/work
cryptography==38.0.1
Cython==0.29.32
distlib==0.3.7
distro @ file:///croot/distro_1701455004953/work
dm-tree==0.1.8
exceptiongroup==1.2.0
Farama-Notifications==0.0.4
fastapi==0.109.2
filelock==3.13.1
flatbuffers==23.5.26
frozenlist==1.4.0
fsspec==2023.5.0
google-api-core==2.14.0
google-api-python-client==1.7.8
google-auth==2.23.4
google-auth-httplib2==0.2.0
google-oauth==1.0.1
googleapis-common-protos==1.61.0
grpcio==1.59.3
gymnasium==0.28.1
h11==0.12.0
httplib2==0.22.0
httptools==0.6.1
humanfriendly==10.0
idna==3.6
imageio==2.31.1
importlib-metadata==4.10.0
isodate==0.6.1
jax-jumpy==1.0.0
jmespath==1.0.1
jsonpatch @ file:///tmp/build/80754af9/jsonpatch_1615747632069/work
jsonpointer==2.1
jsonschema==4.17.3
knack==0.10.1
lazy_loader==0.3
libmambapy @ file:///croot/mamba-split_1704219408234/work/libmambapy
lz4==4.3.2
menuinst @ file:///croot/menuinst_1706732933928/work
msal==1.18.0b1
msal-extensions==1.0.0
msgpack==1.0.7
msrest==0.7.1
msrestazure==0.6.4
multidict==6.0.4
networkx==3.1
numpy==1.23.5
oauthlib==3.2.2
opencensus==0.11.3
opencensus-context==0.1.3
opentelemetry-api==1.1.0
opentelemetry-exporter-otlp==1.1.0
opentelemetry-exporter-otlp-proto-grpc==1.1.0
opentelemetry-proto==1.1.0
opentelemetry-sdk==1.1.0
opentelemetry-semantic-conventions==0.20b0
packaging==21.3
pandas==1.5.3
paramiko==2.12.0
Pillow==9.2.0
pkginfo==1.9.6
platformdirs==3.11.0
pluggy @ file:///tmp/build/80754af9/pluggy_1648024445381/work
portalocker==2.8.2
prometheus-client==0.19.0
protobuf==3.19.6
psutil==5.9.8
py-spy==0.3.14
pyarrow==12.0.1
pyasn1==0.5.1
pyasn1-modules==0.3.0
pycosat @ file:///croot/pycosat_1696536503704/work
pycparser @ file:///tmp/build/80754af9/pycparser_1636541352034/work
pydantic==2.5.0
pydantic_core==2.14.1
Pygments==2.13.0
PyJWT==2.8.0
PyNaCl==1.5.0
pyOpenSSL==22.1.0
pyparsing==3.1.1
pyrsistent==0.20.0
PySocks @ file:///tmp/build/80754af9/pysocks_1605305812635/work
python-dateutil==2.8.2
python-dotenv==1.0.1
pytz==2022.7.1
PyWavelets==1.4.1
PyYAML==6.0.1
ray @ file:///home/ray/ray-3.0.0.dev0-cp39-cp39-manylinux2014_x86_64.whl#sha256=c915d3a317600a021219d86f46109f941593e9f56b93db079fcb99ebb67c7265
redis==3.5.3
requests @ file:///croot/requests_1707355572290/work
requests-oauthlib==1.3.1
rich==12.6.0
rsa==4.7.2
ruamel.yaml @ file:///croot/ruamel.yaml_1666304550667/work
ruamel.yaml.clib @ file:///croot/ruamel.yaml.clib_1666302247304/work
s3transfer==0.6.2
scikit-image==0.21.0
scipy==1.10.1
six==1.16.0
smart-open==6.2.0
sniffio==1.3.0
starlette==0.36.3
tabulate==0.9.0
tensorboardX==2.6
tifffile==2023.7.10
tqdm @ file:///croot/tqdm_1679561862951/work
typer==0.9.0
typing_extensions==4.8.0
uritemplate==3.0.1
urllib3==1.26.18
uvicorn==0.22.0
uvloop==0.19.0
virtualenv==20.21.0
watchfiles==0.19.0
websockets==11.0.3
yarl==1.9.3
zipp==3.17.0
zstandard @ file:///croot/zstandard_1677013143055/work

Ray version: nightly (3ad5adb)

about-time==4.2.1
absl-py==1.4.0
accelerate==0.20.3
adal==1.2.7
aim==3.17.5
aim-ui==3.17.5
aimrecords==0.0.7
aimrocks==0.4.0
aioboto3==11.2.0
aiobotocore==2.5.0
aiofiles==22.1.0
aiohttp==3.8.6
aiohttp-cors==0.7.0
aioitertools==0.11.0
aiorwlock==1.4.0
aiosignal==1.3.1
aiosqlite==0.19.0
ale-py==0.8.1
alembic==1.12.1
alive-progress==3.1.5
annotated-types==0.6.0
anyio==3.7.1
applicationinsights==0.11.10
archspec @ file:///croot/archspec_1697725767277/work
argcomplete==1.12.3
argon2-cffi==23.1.0
argon2-cffi-bindings==21.2.0
array-record==0.4.0
arrow==1.3.0
asttokens==2.4.1
astunparse==1.6.3
async-timeout==4.0.3
attrs==21.4.0
autograd==1.6.2
AutoROM==0.6.1
AutoROM.accept-rom-license==0.6.1
ax-platform==0.3.2
azure-cli-core==2.40.0
azure-cli-telemetry==1.0.8
azure-common==1.1.28
azure-core==1.30.0
azure-identity==1.10.0
azure-mgmt-compute==23.1.0
azure-mgmt-core==1.4.0
azure-mgmt-network==19.0.0
azure-mgmt-resource==20.0.0
Babel==2.13.1
backcall==0.2.0
backoff==1.10.0
base58==2.0.1
bayesian-optimization==1.4.3
bcrypt==4.1.2
beautifulsoup4==4.11.1
bleach==6.1.0
bokeh==2.4.3
boltons @ file:///croot/boltons_1677628692245/work
boto==2.49.0
boto3==1.26.76
botocore==1.29.76
botorch==0.8.5
Brotli @ file:///tmp/abs_ecyw11_7ze/croots/recipe/brotli-split_1659616059936/work
build==1.0.3
cached-property==1.5.2
cachetools==5.3.2
catboost==1.2.2
certifi==2023.11.17
cffi @ file:///croot/cffi_1700254295673/work
charset-normalizer==3.3.2
chess==1.7.0
chex==0.1.7
click==8.1.7
cloudpickle==2.2.0
cma==3.2.2
cmaes==0.10.0
cmake==3.28.3
colorama==0.4.6
coloredlogs==15.0.1
colorful==0.5.5
colorlog==6.7.0
comet-ml==3.31.9
comm==0.2.0
commonmark==0.9.1
conda @ file:///home/conda/feedstock_root/build_artifacts/conda_1707843821892/work
conda-content-trust @ file:///croot/conda-content-trust_1693490622020/work
conda-libmamba-solver @ file:///croot/conda-libmamba-solver_1706733287605/work/src
conda-package-handling @ file:///croot/conda-package-handling_1690999929514/work
conda_package_streaming @ file:///croot/conda-package-streaming_1690987966409/work
configobj==5.0.8
ConfigSpace==0.7.1
contourpy==1.1.1
crc32c==2.3
crcmod==1.7
cryptography==38.0.1
cycler==0.12.1
Cython==0.29.32
dask==2022.10.1
databricks-cli==0.18.0
datasets==2.14.0
debugpy==1.8.0
decorator==5.1.1
deepspeed==0.12.3
defusedxml==0.7.1
Deprecated==1.2.14
dill==0.3.7
distlib==0.3.7
distributed==2022.10.1
distro @ file:///croot/distro_1701455004953/work
dm-control==1.0.12
dm-env==1.6
dm-tree==0.1.8
docker==6.1.3
docker-pycreds==0.4.0
dopamine-rl==4.0.5
dulwich==0.21.6
entrypoints==0.4
etils==1.3.0
evaluate==0.4.0
everett==3.3.0
exceptiongroup==1.2.0
executing==2.0.1
fairscale==0.4.6
Farama-Notifications==0.0.4
fastapi==0.109.2
fasteners==0.19
fastjsonschema==2.19.0
filelock==3.13.1
Flask==2.1.3
Flask-Cors==4.0.0
flatbuffers==2.0.7
flax==0.7.2
fonttools==4.45.1
fqdn==1.5.1
frozenlist==1.4.0
fsspec==2023.5.0
future==0.18.3
gast==0.4.0
gcs-oauth2-boto-plugin==3.0
gin-config==0.5.0
gitdb==4.0.11
GitPython==3.1.40
glfw==2.6.3
google-api-core==2.14.0
google-api-python-client==1.7.8
google-apitools==0.5.32
google-auth==2.23.4
google-auth-httplib2==0.2.0
google-auth-oauthlib==0.4.6
google-oauth==1.0.1
google-pasta==0.2.0
google-reauth==0.1.1
googleapis-common-protos==1.61.0
GPy==1.10.0
gpytorch==1.10
grapheme==0.6.0
graphviz==0.20.1
greenlet==3.0.1
grpcio==1.59.3
gsutil==5.27
gunicorn==20.1.0
gym==0.26.2
gym-notices==0.0.8
gymnasium==0.28.1
h11==0.12.0
h5py==3.7.0
HEBO @ git+https://github.com/huawei-noah/HEBO@9a2a674c22518eed35a8b98e5134576741a95410#subdirectory=HEBO
higher==0.2.1
hjson==3.1.0
hpbandster==0.7.4
httplib2==0.20.4
httptools==0.6.1
huggingface-hub==0.19.4
humanfriendly==10.0
hyperopt==0.2.7
idna==3.6
imageio==2.31.1
imageio-ffmpeg==0.4.5
importlib-metadata==4.10.0
importlib-resources==5.13.0
iniconfig==2.0.0
ipykernel==6.27.1
ipython==8.12.3
ipython-genutils==0.2.0
ipywidgets==7.8.1
isodate==0.6.1
isoduration==20.11.0
itsdangerous==2.1.2
jax==0.4.13
jax-jumpy==1.0.0
jaxlib==0.4.13
jedi==0.19.1
Jinja2==3.0.3
jmespath==1.0.1
joblib==1.2.0
json5==0.9.14
jsonpatch @ file:///tmp/build/80754af9/jsonpatch_1615747632069/work
jsonpointer==2.4
jsonschema==4.17.3
jsonschema-specifications==2023.12.1
jupyter-client==7.3.4
jupyter-events==0.6.3
jupyter-server==1.24.0
jupyter-ydoc==0.2.5
jupyter_core==5.5.0
jupyter_server_fileid==0.9.0
jupyter_server_ydoc==0.6.1
jupyterlab==3.6.1
jupyterlab-widgets==1.1.7
jupyterlab_pygments==0.3.0
jupyterlab_server==2.24.0
kaggle-environments==1.7.11
keras==2.11.0
kiwisolver==1.4.5
knack==0.10.1
labmaze==1.0.6
lazy_loader==0.3
libclang==16.0.6
libmambapy @ file:///croot/mamba-split_1704219408234/work/libmambapy
lightgbm==3.3.5
lightgbm-ray @ git+https://github.com/ray-project/lightgbm_ray.git@4c4d3413f86db769bddb6d08e2480a04bc75d712
linear-operator==0.4.0
lit==17.0.6
locket==1.0.0
lxml==4.9.1
lz4==4.3.2
Mako==1.3.0
Markdown==3.5.1
markdown-it-py==3.0.0
MarkupSafe==2.1.3
matplotlib==3.7.4
matplotlib-inline==0.1.6
mdurl==0.1.2
menuinst @ file:///croot/menuinst_1706732933928/work
minigrid==2.1.1
mistune==0.8.4
ml-dtypes==0.2.0
mlagents-envs==0.28.0
mlflow==2.4.1
modin==0.22.2
monotonic==1.6
more-itertools==10.1.0
mpmath==1.3.0
msal==1.18.0b1
msal-extensions==1.0.0
msgpack==1.0.7
msgpack-numpy==0.4.8
msrest==0.7.1
msrestazure==0.6.4
mujoco==2.3.6
multidict==6.0.4
multipledispatch==1.0.0
multiprocess==0.70.15
nbclassic==1.0.0
nbclient==0.5.13
nbconvert==6.5.4
nbformat==5.9.2
nest-asyncio==1.5.8
netifaces==0.11.0
networkx==3.1
nevergrad==0.4.3.post7
ninja==1.11.1.1
notebook==6.5.6
notebook_shim==0.2.3
numexpr==2.8.4
numpy==1.23.5
oauth2client==4.1.3
oauthlib==3.2.2
onnx==1.12.0
onnxruntime==1.14.1
open-spiel==1.2
opencensus==0.11.3
opencensus-context==0.1.3
opencv-python==4.8.1.78
opentelemetry-api==1.1.0
opentelemetry-exporter-otlp==1.1.0
opentelemetry-exporter-otlp-proto-common==1.22.0
opentelemetry-exporter-otlp-proto-grpc==1.1.0
opentelemetry-exporter-otlp-proto-http==1.22.0
opentelemetry-proto==1.1.0
opentelemetry-sdk==1.1.0
opentelemetry-semantic-conventions==0.20b0
opt-einsum==3.3.0
optax==0.1.7
optuna==3.2.0
orbax-checkpoint==0.2.3
packaging==21.3
pandas==1.5.3
pandocfilters==1.5.0
paramiko==2.12.0
paramz==0.9.5
parso==0.8.3
partd==1.4.1
pathtools==0.1.2
patsy==0.5.3
pettingzoo==1.23.1
pexpect==4.8.0
pickleshare==0.7.5
Pillow==9.2.0
pip-tools==7.4.0
pkginfo==1.9.6
platformdirs==3.11.0
plotly==5.18.0
pluggy==1.3.0
portalocker==2.8.2
prometheus-client==0.19.0
promise==2.3
prompt-toolkit==3.0.41
protobuf==3.19.6
psutil==5.9.6
ptyprocess==0.7.0
pure-eval==0.2.2
py==1.11.0
py-cpuinfo==9.0.0
py-spy==0.3.14
py3nvml==0.2.7
py4j==0.10.9.7
pyaml==23.9.7
pyarrow==12.0.1
pyasn1==0.5.1
pyasn1-modules==0.3.0
pycosat @ file:///croot/pycosat_1696536503704/work
pycparser @ file:///tmp/build/80754af9/pycparser_1636541352034/work
pydantic==2.5.0
pydantic_core==2.14.1
pyDeprecate==0.3.2
pygame==2.1.2
pyglet==1.5.15
Pygments==2.13.0
PyJWT==2.8.0
pymars==0.10.0
pymoo==0.6.1.1
pymunk==6.2.1
PyNaCl==1.5.0
pynvml==11.5.0
PyOpenGL==3.1.7
pyOpenSSL==23.0.0
pyparsing==3.1.1
pyproject_hooks==1.0.0
pyro-api==0.1.2
pyro-ppl==1.8.6
Pyro4==4.82
pyrsistent==0.20.0
PySocks @ file:///tmp/build/80754af9/pysocks_1605305812635/work
pyspark==3.4.1
pytest==7.0.1
pytest-remotedata==0.3.2
python-dateutil==2.8.2
python-dotenv==1.0.1
python-json-logger==2.0.7
pytorch-lightning==1.6.5
pytz==2022.7.1
pyu2f==0.1.5
PyWavelets==1.4.1
PyYAML==6.0.1
pyzmq==24.0.1
querystring-parser==1.2.4
ray @ file:///home/ray/ray-3.0.0.dev0-cp39-cp39-manylinux2014_x86_64.whl#sha256=89863b22d2324d7460cdb912125c3f6de9226535a9a6f14afcc7932839527bac
raydp==1.7.0b20231020.dev0
recsim==0.2.4
redis==3.5.3
referencing==0.33.0
regex==2023.10.3
requests @ file:///croot/requests_1707355572290/work
requests-oauthlib==1.3.1
requests-toolbelt==1.0.0
responses==0.13.4
RestrictedPython==7.0
retry-decorator==1.1.1
rfc3339-validator==0.1.4
rfc3986-validator==0.1.1
rich==12.6.0
rpds-py==0.18.0
rsa==4.7.2
ruamel.yaml @ file:///croot/ruamel.yaml_1666304550667/work
ruamel.yaml.clib @ file:///croot/ruamel.yaml.clib_1666302247304/work
s3fs==2023.5.0
s3transfer==0.6.2
safetensors==0.4.1
scikit-image==0.21.0
scikit-learn==1.0.2
scikit-optimize==0.9.0
scipy==1.10.1
segment-analytics-python==2.2.0
semantic-version==2.10.0
Send2Trash==1.8.2
sentencepiece==0.1.96
sentry-sdk==1.37.1
serpent==1.41
setproctitle==1.3.3
Shimmy==1.3.0
shortuuid==1.0.1
six==1.16.0
smart-open==6.2.0
smmap==5.0.1
sniffio==1.3.0
sortedcontainers==2.4.0
soupsieve==2.5
SQLAlchemy==1.4.17
sqlparse==0.4.4
stack-data==0.6.3
starlette==0.36.3
statsmodels==0.14.0
SuperSuit==3.8.0
sympy==1.12
tabulate==0.9.0
tblib==3.0.0
tenacity==8.2.3
tensorboard==2.11.2
tensorboard-data-server==0.6.1
tensorboard-plugin-wit==1.8.1
tensorboardX==2.6
tensorflow==2.11.0
tensorflow-datasets==4.9.0
tensorflow-estimator==2.11.0
tensorflow-io-gcs-filesystem==0.31.0
tensorflow-metadata==1.13.0
tensorflow-probability==0.19.0
tensorstore==0.1.45
termcolor==2.3.0
terminado==0.18.0
tf-slim==1.1.0
tf2onnx==1.13.0
threadpoolctl==3.1.0
tifffile==2023.7.10
timm==0.9.2
tinycss2==1.2.1
tinyscaler==1.2.6
tokenizers==0.12.1
toml==0.10.2
tomli==2.0.1
toolz==0.12.0
torch==2.0.1+cu118
torch-cluster==1.6.1+pt20cu118
torch-scatter==2.1.1+pt20cu118
torch-sparse==0.6.17+pt20cu118
torch-spline-conv==1.2.2+pt20cu118
torch_geometric==2.3.1
torchdata==0.6.1
torchmetrics==0.10.3
torchtext==0.15.2+cpu
torchvision==0.15.2+cu118
tornado==6.1
tqdm==4.64.1
traitlets==5.14.0
transformers==4.19.1
triton==2.0.0
tune-sklearn==0.4.6
typeguard==2.13.3
typer==0.9.0
types-python-dateutil==2.8.19.14
typing_extensions==4.8.0
tzdata==2024.1
uri-template==1.3.0
uritemplate==3.0.1
urllib3==1.26.18
uvicorn==0.22.0
uvloop==0.19.0
virtualenv==20.21.0
wandb==0.13.4
watchfiles==0.19.0
wcwidth==0.2.12
webcolors==1.13
webencodings==0.5.1
websocket-client==1.6.4
websockets==11.0.3
Werkzeug==2.1.2
widgetsnbextension==3.6.6
wrapt==1.16.0
wurlitzer==3.0.3
xgboost==1.7.6
xgboost-ray @ git+https://github.com/ray-project/xgboost_ray.git@5a840af05d487171883dadbfdd37b138b607bed8
xmltodict==0.13.0
xxhash==3.4.1
y-py==0.6.2
yarl==1.9.3
ypy-websocket==0.8.4
zict==3.0.0
zipp==3.17.0
zoopt==0.4.1
zstandard @ file:///croot/zstandard_1677013143055/work

Install Ray Java with Maven#

Note

All Ray Java APIs are experimental and only supported by the community.

Before installing Ray Java with Maven, you should install Ray Python with pip install -U ray . Note that the versions of Ray Java and Ray Python must match. Note that nightly Ray python wheels are also required if you want to install Ray Java snapshot version.

Find the latest Ray Java release in the central repository. To use the latest Ray Java release in your application, add the following entries in your pom.xml:

<dependency>
  <groupId>io.ray</groupId>
  <artifactId>ray-api</artifactId>
  <version>${ray.version}</version>
</dependency>
<dependency>
  <groupId>io.ray</groupId>
  <artifactId>ray-runtime</artifactId>
  <version>${ray.version}</version>
</dependency>

The latest Ray Java snapshot can be found in sonatype repository. To use the latest Ray Java snapshot in your application, add the following entries in your pom.xml:

<!-- only needed for snapshot version of ray -->
<repositories>
  <repository>
    <id>sonatype</id>
    <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
    <releases>
      <enabled>false</enabled>
    </releases>
    <snapshots>
      <enabled>true</enabled>
    </snapshots>
  </repository>
</repositories>

<dependencies>
  <dependency>
    <groupId>io.ray</groupId>
    <artifactId>ray-api</artifactId>
    <version>${ray.version}</version>
  </dependency>
  <dependency>
    <groupId>io.ray</groupId>
    <artifactId>ray-runtime</artifactId>
    <version>${ray.version}</version>
  </dependency>
</dependencies>

Note

When you run pip install to install Ray, Java jars are installed as well. The above dependencies are only used to build your Java code and to run your code in local mode.

If you want to run your Java code in a multi-node Ray cluster, it’s better to exclude Ray jars when packaging your code to avoid jar conficts if the versions (installed Ray with pip install and maven dependencies) don’t match.

Install Ray C++#

Note

All Ray C++ APIs are experimental and only supported by the community.

You can install and use Ray C++ API as follows.

pip install -U ray[cpp]

# Create a Ray C++ project template to start with.
ray cpp --generate-bazel-project-template-to ray-template

Note

If you build Ray from source, remove the build option build --cxxopt="-D_GLIBCXX_USE_CXX11_ABI=0" from the file cpp/example/.bazelrc before running your application. The related issue is this.