TypeError: ‘set‘ object is not subscriptable

        The background of the problem: I wrote a python script and used the pyexcel_xlsx package in the script, which can read excel files. Running locally can run successfully, and running on a Linux server reports this error. Both pythons use the 3.8 version, and the pyexcel_xlsx version is also the same.

         Solution: Later, it was found that the openpyxl package will be used when reading files, and openpyxl will be automatically downloaded when downloading pyexcel_xlsx. The version of openpyxl is different, the local version is 3.0.10, and the Linux server is version 3.1.2. Linux Uninstall the openpyxl on the computer, re-download the 3.0.10 version, and run it again, the problem is solved.

Guess you like

Origin blog.csdn.net/h360583690/article/details/132523937