How manage ray cluster python script's dependency?

How to manage script’s dependency on remote ray cluster when submit a script of python?

Do these dependencies of the python script have to be installed on remote ray cluster in advance?

Is there any other way to manage dependency?