Fatal error: Wire.h: No such file or directory

I use arduino Pro Micro atmega32u4 5v. Cause of IDE have no Pro Micro board I used Sparkfun link.

It says that I don’t have the wire.h library, but if I follow the path where the libraries are stored, it’s there, as it should be.

I tried downloading the library from the internet, It works fine with everything without setclock. But if there setclock, it returns error.

fatal error: Wire.h: No such file or directory
_wire->setClock(desiredclk);
^~~~~~~~
exit status 1

Compilation error: exit status 1

I successfully upload simple sketches like blink, and I can even display an image on an OLED, but without a setclock.

Any idea how to fix?

Cause of IDE have no Pro Micro board I used Sparkfun link.

As a start, you need to add the correct board definition to the IDE.