An injective resolution is an exact sequence starting with a sheaf and continuing with injective sheaves. It is constructed by successively embedding each quotient in an injective sheaf. Taking global sections and then cohomology computes sheaf cohomology; in particular an injective sheaf has zero higher cohomology.
For a short exact sequence of sheaves with flasque kernel, every section of on an open set lifts to there. Indeed choose a maximal partial lift by the Zorn lemma, using the sheaf gluing axiom on chains. At any point outside its domain choose a local lift. The difference on the overlap is a section of and extends to the new open set by flasqueness; subtract that extension from the new lift and glue. Maximality forces the lift's domain to be the whole open set. Thus taking sections preserves this short exact sequence.
Every injective sheaf is flasque: for , the monomorphism between the extension by zero sheaves and the defining extension property of injectivity make the restriction surjective. Embed into an injective sheaf . The quotient is flasque as well: lift a section of on a smaller open to , extend it in , and project.
The long exact sequence in sheaf cohomology now gives , since is surjective, and for gives , since injectives have zero positive-degree derived functors. Repeat the construction for the flasque quotient. After finitely many such shifts any specified positive degree reduces to a vanishing first group. Hence
No separation, compactness or scheme hypothesis is used.