As shown below
Measures: Select [File] - [Settings], find the current project, choose [Project Interpreter], click the + sign, search paho-mqtt library, select and click [Install Package] installation, the installation is successful the lower right corner will be prompted Packages installed successfully, run the program again no errors.
OK。