ValueError: bad marshal data (unknown type code)

报错:ValueError: bad marshal data (unknown type code)

Traceback (most recent call last):

File “F:/project-python-dev/TimeAccount/app.py”, line 10, in <module>

from data import SourceData

File “<frozen importlib._bootstrap>”, line 991, in _find_and_load

File “<frozen importlib._bootstrap>”, line 975, in _find_and_load_unlocked

File “<frozen importlib._bootstrap>”, line 671, in _load_unlocked

File “<frozen importlib._bootstrap_external>”, line 779, in exec_module

File “<frozen importlib._bootstrap_external>”, line 911, in get_code

File “<frozen importlib._bootstrap_external>”, line 580, in _compile_bytecode

ValueError: bad marshal data (unknown type code)

 

删除所有.pyc文件,重新运行即可解决

 

 

大T笔记所有文章均为本人原创,转载请您注明来源,并留下原文链接地址,是对我的尊重,也是对知识的尊重,谢谢!
大T笔记 » ValueError: bad marshal data (unknown type code)

大T笔记-我的个人互联网创业和自由职业之路

关于我 我的百宝箱
大T笔记-专注个人互联网创业和自由职业