我尝试启动 eppy 包的第一个命令,但收到奇怪的错误:
from eppy import modeleditor
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
from eppy import modeleditor
File "C:\Users\...\AppData\Local\Programs\Python\Python310\lib\site-packages\eppy\modeleditor.py", line 26, in <module>
from eppy.idfreader import idfreader1
File "C:\Users\...\AppData\Local\Programs\Python\Python310\lib\site-packages\eppy\idfreader.py", line 24, in <module>
from eppy.idf_msequence import Idf_MSequence
File "C:\Users\...\AppData\Local\Programs\Python\Python310\lib\site-packages\eppy\idf_msequence.py", line 27, in <module>
class Idf_MSequence(collections.MutableSequence):
AttributeError: module 'collections' has no attribute 'MutableSequence'
我注意到可能有一些丢失的文件,但我不确定。我将我的文件与 GitHub 文件夹进行了比较:
截图:
文件夹资源不见了……不知道是不是这个问题。我简单地使用以下命令安装了 eppy 包:pip install eppy
你能帮帮我吗?非常感谢 :-)