To install TestNG in Eclipse, click on the Eclipse marketplace to access the available plugins or click install new software if the marketplace is not available, then select TestNG from the list of available plugins and install it as the default testing framework, and finally click finish to complete the installation.