I want to use VS Code with wsl and a specific python (version 3.5.0). I managed to install the desired python version following this instruction https://www.scriptinghouse.com/2023/11/install-specific-python-version-on-windows-subsystem-for-linux-wsl.html. It worked and the python 3.5.0 Interpreter appears in VS Code. But my problem now is that the 'python debugger doesn't support any versions below 3.7'. The first time I tried there was a warning saying this and now nothing happens when I try to run a simple test script:
print('test')
Does anybody have an idea how to make this work?
You could read document about vscode-python-debugger.
Older versions of the Python Debugger extension are available for debugging Python projects that use outdated Python versions like Python 2.7 and Python 3.6. However, it’s important to note that our team is no longer maintaining these extension versions. We strongly advise you to update your project to a supported Python version if possible.
You can reference the table below to find the most recent Python Debugger extension version that offers debugging support for projects using deprecated Python versions, as well as the debugpy version that is shipped in each extension version. If you do not see older extension versions to install (<=2024.0.0), try opting-in to pre-releases. You can do so on the extension page by clicking
Switch to Pre-ReleaseVersion.You could click install another version and choose 2023.1.xx: