Traceback (most recent call last):
File "test.py", line 1, in <module>
from utils import common
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 844, in exec_module
File "<frozen importlib._bootstrap_external>", line 976, in get_code
File "<frozen importlib._bootstrap_external>", line 640, in _compile_bytecode
ValueError: bad marshal data (unknown type code)
解决办法:
find /usr -name "*.pyc" -delete
删除当前目录__pycache__