简体   繁体   中英

I can't install paho-mqtt

I tried to install paho-mqtt. I typed pip install paho-mqtt to install it and it was successful! But when I type import paho.mqtt.client as mqtt in my.py. The following error code is shown:

Import "paho.mqtt.client" could not be resolved.

What's wrong with it??? Please help me if you know how to fix it, thanks

try do this:

python -m pip install paho-mqtt

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM