Trojan viruses can enter a computer through various means, including email attachments, compromised websites, software downloads from untrustworthy sources, or even social engineering tactics. They rely on user interaction or vulnerabilities in software to gain access to the system.