I recently uploaded my plugin to the QGIS Plugin Repository. The problem I'm encountering is that my plugin relies on the openpyxl library, which is not bundled with QGIS. Consequently, users encounter a 'module not found' error when attempting to install the plugin. I would like to know how I can automate the installation of the openpyxl library on users' PCs

  • Have you tried some of the other suggestions: gis.stackexchange.com/questions/196002/… Oct 13, 2023 at 10:24
  • No I didn't. I think the "try: import package except: ..." solution looks good, Should I include it in my plugin main python file, where the code is written?
    – FF123456
    Oct 13, 2023 at 10:38
  • Yes, the main part. Oct 13, 2023 at 15:37
  • 1
    @HeikkiVesanto Thank you so much, it worked
    – FF123456
    Oct 14, 2023 at 12:17


Browse other questions tagged or ask your own question.