Can I deduct a laptop for an online program?

I would need to purchase a laptop in order to participate in an online program, geared towards preparing me for a career in data analytics. The course would be through Coursera or a similar type learning platform. I would be unable to take the class without the purchase of a new laptop, as I would need specific hardware.

 

Is this deductable, or does it have to be through a university?