ImportError: No module named ray

I created a new cluster in AWS. I’m still having an error when I want to execute this command:
ray exec aws_cluster.yaml ‘python -c “import ray; ray.init()”’

I get: ImportError: No module named ray

In my aws_cluster.yaml file, I had this command:
setup_commands:

  • pip install ray[all] torch

Not only that, but I’m having an errors with all the python packages.

Hi @YoussefBenF , what kind of errors are you seeing with the Python packages and which Ray version are you using? I don’t think you need to install Ray again in the setup_commands, Ray should already be installed.

Does the default example at Launching Ray Clusters on AWS — Ray 2.0.1 work for you?