Bug The PyDev.Debugger requires Python 3.6 onwards to be run
解决
Traceback (most recent call last):
File "/home/xxx/.vscode-server/extensions/ms-python.python-2022.4.0/pythonFiles/lib/python/debugpy/__main__.py", line 43, in <module>
from debugpy.server import cli
File "/home/xxx/.vscode-server/extensions/ms-python.python-2022.4.0/pythonFiles/lib/python/debugpy/../debugpy/server/__init__.py", line 9, in <module>
import debugpy._vendored.force_pydevd # noqa
File "/home/xxx/.vscode-server/extensions/ms-python.python-2022.4.0/pythonFiles/lib/python/debugpy/../debugpy/_vendored/force_pydevd.py", line 52, in <module>
'pydevd',
File "/home/xxx/.vscode-server/extensions/ms-python.python-2022.4.0/pythonFiles/lib/python/debugpy/../debugpy/_vendored/__init__.py", line 128, in preimport
import_module(name)
File "/home/yy/anaconda3/envs/randlanet/lib/python3.5/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "/home/xxx/.vscode-server/extensions/ms-python.python-2022.4.0/pythonFiles/lib/python/debugpy/_vendored/pydevd/pydevd.py", line 8, in <module>
raise RuntimeError('The PyDev.Debugger requires Python 3.6 onwards to be run. If you need to use an older Python version, use an older version of the debugger.')
RuntimeError: The PyDev.Debugger requires Python 3.6 onwards to be run. If you need to use an older Python version, use an older version of the debugger.
提示:If you need to use an older Python version, use an older version of the debugger.
也可以从 Traceback 上看哪些文件的问题猜出怎么解决,
问题原因:VScode python的扩展版本不合适,
从 v2022.4.0 回退版本