In order to print from your Mac computer, the printer must be first added to the list of Printers & Scanners in your computer. Upon adding a printer, the computer automatically downloads the printer’s software. If you have an AirPrint-enabled printer, it is compatible with macOS. Or check your printer’s compatibility with the Apple Support.
If the Mac computer on which the printer is to be installed has a printer software, it should be removed from the computer.