Traceback (most recent call last):
File "C:\Users\FiercePC\PycharmProjects\testing MORE thigs\main.py", line 1, in <module>
import openpyxl
File "C:\Users\FiercePC\AppData\Local\Programs\Python\Python37-32\lib\openpyxl\__init__.py", line 7, in <module>
from openpyxl.workbook import Workbook
File "C:\Users\FiercePC\AppData\Local\Programs\Python\Python37-32\lib\openpyxl\workbook\__init__.py", line 4, in <module>
from .workbook import Workbook
File "C:\Users\FiercePC\AppData\Local\Programs\Python\Python37-32\lib\openpyxl\workbook\workbook.py", line 7, in <module>
from openpyxl.worksheet.worksheet import Worksheet
File "C:\Users\FiercePC\AppData\Local\Programs\Python\Python37-32\lib\openpyxl\worksheet\worksheet.py", line 25, in <module>
from openpyxl.cell import Cell, MergedCell
File "C:\Users\FiercePC\AppData\Local\Programs\Python\Python37-32\lib\openpyxl\cell\__init__.py", line 3, in <module>
from .cell import Cell, WriteOnlyCell, MergedCell
File "C:\Users\FiercePC\AppData\Local\Programs\Python\Python37-32\lib\openpyxl\cell\cell.py", line 26, in <module>
from openpyxl.styles import numbers, is_date_format
File "C:\Users\FiercePC\AppData\Local\Programs\Python\Python37-32\lib\openpyxl\styles\__init__.py", line 4, in <module>
from .alignment import Alignment
File "C:\Users\FiercePC\AppData\Local\Programs\Python\Python37-32\lib\openpyxl\styles\alignment.py", line 5, in <module>
from openpyxl.descriptors import Bool, MinMax, Min, Alias, NoneSet
File "C:\Users\FiercePC\AppData\Local\Programs\Python\Python37-32\lib\openpyxl\descriptors\__init__.py", line 4, in <module>
from .sequence import Sequence
File "C:\Users\FiercePC\AppData\Local\Programs\Python\Python37-32\lib\openpyxl\descriptors\sequence.py", line 4, in <module>
from openpyxl.xml.functions import Element
File "C:\Users\FiercePC\AppData\Local\Programs\Python\Python37-32\lib\openpyxl\xml\functions.py", line 36, in <module>
from et_xmlfile import xmlfile
ModuleNotFoundError: No module named 'et_xmlfile'
我想做的就是使用 Python 为项目编辑 .xlsx 文件,所以如果有任何简单的修复或替代方法,请告诉我。
我试过卸载和安装 openpyxl,我试过使用另一台计算机(我什至无法让 pip 工作),我试过安装它说缺少的模块,所有这些都以相同的错误结束。我很确定我已经正确安装了 openpyxl,但如果我还没有,请告诉我如何安装。
谢谢!