'"Discovering Python Interpreters" taking Infinite time in VS Code

I am new to Ubuntu, as well as to python.
( This problem has started just recently until now everything was fine.)
Whenever I am trying to start my VS Code to learn Django, the VS Code is showing the following issue for an infinite time

enter image description here

i.e., it is not discovering Python interpreters. The problem seems to be in the Python Extension which I am using. I tried to Uninstall it and then reinstall it. But it turned out to be of no use.
I even tried to uninstall and reinstall vscode from my ubuntu (20.04) system itself. But vs code started from exactly where I left, with no change.
I even tried to change the python interpreter path from the command palate, but it also didn't work. enter image description here

I could find something relatable here, but I couldn't understand/follow them.
Help from someone's side would be appreciated.



Solution 1:[1]

I've recently started experiencing the same problem with VS Code (latest version), albeit on Windows 10. I'm using Python 3.10.4 from python.org, the latest Microsoft Python extension, and a virtual environment for the workspace in which I do Python development. The option to select the interpreter is dysfunctional - it doesn't offer an interpreter to select. The workaround I found is to terminate and restart VS Code until it discovers the Python interpreter in the virtual environment. Frustrating, but it works, without having to uninstall and reinstall everything (yes, I unsuccessfully tried that too).

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 Gunter Seydack