buzzard51
buzzard51

Reputation: 1477

PyCharm can't find paho library

I just installed PyCharm on my windows machine. Running Python 2.7.10, I have a module with the line

import paho.mqtt.client as client

I get the 'No module named paho' error. I've installed pip and paho on my Python27 installation on the host but PyCharm has not found it.

How do I import the paho library into PyCharm?

Upvotes: 0

Views: 3560

Answers (1)

buzzard51
buzzard51

Reputation: 1477

I found the answer here:

https://www.youtube.com/watch?v=HJ9bTO5yYw0

File:Settings:Project:Project Interpreter, click '+' in upper right corner, scroll to paho.mqtt, select and click 'Install Package'

Could not be easier - thanks to all.

Upvotes: 1

Related Questions