'The Python Tools server crashed 5 times in the last 3 minutes. The server will not be restarted

The Python Server Crashes Unexpectedly. Am able to run in debug mode but the Linting is not working. Could anybody help me out please?



Solution 1:[1]

I had a similar issue, which I resolved based on this answer. What I found was opening the folders individually seemed to work fine, but if I opened the workspace it caused the issues.

Deleting the workspace and creating a new one seemed to solve the issue.

Solution 2:[2]

If problem continues even you've tried the workarounds mentioned at github and still having the same issue, I've managed to get rid of that problem by uninstalling antivirus software permanently. Also I become 5 years younger as a side effect.

Solution 3:[3]

If anyone is facing this issue in the containers then this did the trick for me:

Run the following the command inside the container:

rm -rf ~/.vscode-server/

Reopen vscode

It removes all the cached data for that particular container.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Joe Buckley
Solution 2 vslzl
Solution 3 Oliver