1. 程式人生 > 其它 >Bug "The PyDev.Debugger requires Python 3.6 onwards to be run" 解決

Bug "The PyDev.Debugger requires Python 3.6 onwards to be run" 解決

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 回退版本