System wide install on Ubuntu

greetings -

I am having great difficulty getting Ray installed on Ubuntu. I would like Ray to be installed globally, but the latest python wants the virtual environment. I am aware of the “break-system-packages” override, but the warnings are stark.

What is the correct way to install Ray globally? I would like Prometheus, Grafana, and the Ray master (plus dashboard) to run at startup. I cannot figure out how to get there.

Any assistance appreciated…

Troy

Hi Troyt,
Welcome to the Ray community! :slight_smile:

I took a look at our install docs so hopefully these will be helpful:

  1. Install Ray (not generally recommended globally due to dependency conflicts, but generally works):
sudo pip install ray[default]
  1. Set Up Prometheus and Grafana
  1. Configure Ray to Start at Boot
  • Create a systemd service file at /etc/systemd/system/ray.service:
[Unit]
Description=Ray Service
After=network.target

[Service]
Type=simple
User=ray
ExecStart=/usr/local/bin/ray start --head --dashboard-host 0.0.0.0
ExecStop=/usr/local/bin/ray stop
Restart=on-failure

[Install]
WantedBy=multi-user.target
  • Adjust /usr/local/bin/ray if needed.
  1. Enable and Start the Service
sudo systemctl enable ray.service  
sudo systemctl start ray.service  
  1. Access the Ray Dashboard at http://<your-server-ip>:8265.

For more docs:

Hopefully this helps, lmk if you have any other quesitons!