Europe has plenty of energy. They sit on huge gas reserves, for instance, but have decided to effectively ban using them by banning fracking while still being extremely dependent on gas. And not only that but most of gas imports came from a geostrategic adversary...
This is all self-inflicted. You can't prevent people and countries from shooting themselves in the foot.