解决了:pip install --upgrade ipytho
类似 这里描述,import什么库、设置变量都不行。
https://*.com/questions/63519761/python-typeerror-required-field-type-ignores-missing-from-module-in-jupyter
怎么都返回错误信息:
TypeError Traceback (most recent call last)
/usr/lib/python3.8/codeop.py in __call__(self, source, filename, symbol)
134
135 def __call__(self, source, filename, symbol):
--> 136 codeob = compile(source, filename, symbol, self.flags, 1)
137 for feature in _features:
138 if codeob.co_flags & feature.compiler_flag:
TypeError: required field "type_ignores" missing from Module
jupyter lab 错误: TypeError: required field "type_ignores" missing from Module