You need a lot of petroleum to install wind and solar arrays. I installed a solar farm and we burned up a hell of a lot of fuel. Near my home in Virginia they are building wind turbines and the ships, tugboats, cranes, trucks and generators all use thousands of gallons of petroleum every hour.
The wind farms are subsidized for about 1 million USD FOR 20 YEARS and then decommissioned for the landfill.
So it costs about 2 million USD for each windmill and net earning is 1 million over 20 years.