Pin mounts horizontal pin rows
Two obvious options come to mind:

Bend the pins down at 90&deg;.  Now you have a DIP (dual inline package).  If you're lucky, the spacing between the two rows of pins matches a common DIP spacing, or depending on how you bend the pins can be arranged to match a common spacing, like 600 mils.

If not, then two SIP (single in line package) sockets should work since you can mount them on the PCB at whatever spacing you want.  In a pinch, you might be able to saw or break a DIP socket to make two SIP sockets.

Bend the leads down to a little below the level of the bottom of the package, then continue them straight out from the package.  Now you have a SMD (surface mount device).  Just solder the pins down on pads normally.

These are much easier to unsolder than thru hole.