ImportError: No module named 'thread'

There is an issue with the vscode python extension version 2022.4.0

just downgrade to version 2022.2.1924087327 and it will work as it works for me now

Just follow these steps:

  • Go to extensions.
  • Click on Gear Icon for the installed extension
  • Click on Install Another Version
  • select the version you wish to install

enter image description here


I think its the VS Code Python Extension. In VS Code select the Python Extension and select the Uninstall dropdown to install a previous version, the 2022.2.xxx fixed this issue.install previous version