Could not find a version that satisfies the requirement paho

        在使用Python语言的MQTT协议时,需要导入的是 paho-mqtt 包,而不是paho包。

PS C:\Users\hpec\PycharmProjects\access_simulation> pip3.11.exe install paho
ERROR: Could not find a version that satisfies the requirement paho (from versions: none)
ERROR: No matching distribution found for paho

        正确的导入命令如下:

pip3 install paho-mqtt

你可能感兴趣的:(python)