speaking in generalities, I've not tried on my corolla but have installed them on many vehicles over the years.
If it is a mechanical oil pressure gauge you will need to add a fitting to a pressurized oil galley somewhere. If it is an electrical gauge, same thing... but instead of a tiny nylon oil line you will install a sending unit and have an electrical connection. A tee fitting may be used where the factory sending unit is located. I would not remove the factory sending unit, but add to it if I was going to do it.
Most people would recommend the electrical gauge. Mechanical gauges can be slow to react due to the restriction of the small nylon line. So they tend to read more of an average pressure instead of spikes or drops. (a momentary drop going around a curve is a sure indicator your oil level is low)
Electrical gauges can react much faster but usually the sending unit is sold separately (additional cost)
As a general rule, select a gauge with a range that puts the needle in mid travel at normal operating pressure.