Tyranitar cannot learn Thunder Fang through any means in the mainline Pokémon games.
Thunder Fang is a Normal-type move, while Tyranitar is a Rock/Dark-type. Pokémon can only learn moves of their own types or those specifically listed in their movepool.
Even with the use of TMs, TRs, or breeding, Tyranitar cannot learn Thunder Fang. Note that movepools may vary between game generations, but this restriction has remained consistent.