I understood. Firstly the code your professor provided should be proved correct. Make sure the code can be run successful on other machine before. Secondly, you need to start ray by run ray start --head
in your cmd. Try to start ray in the cmd by running ray start --head
to see if the ray can be start successfully.