The invention relates to a method for preparing a perylene polyimide derivative film in the technical field of photoelectric materials. In the method, hydrazine hydrate is used for replacing trifluoroacetic acid, a positive electrode deposition method is adopted, and a dense and uniform film is prepared with a low voltage of 0.5-5V and a low current of 0.02-5mA within a relatively short deposition time. Moreover, composite films conforming to various absorption ranges are prepared through changing the structure and the matching of the perylene polyimide derivative.