It's like Skyrim, you need to destroy an enchanted item at the enchanting table to learn that enchantment, you have to have a filled soul gem, and you need to have an appropriate unenchanted item that matches the enchantment (i.e., certain types of enchantments only work on certain iyems).