You'll need a Nintendo 64 emulator with two controllers configured. In the emulator's input settings, map a second controller — keyboard keys or two USB gamepads both work — then choose the versus mode inside the game and set the player count to two.
The emulator's own documentation is the best reference here, since the exact menu names differ between builds.