I had Python 3 working well on Windows 10, with Anaconda installed. When I uninstalled Anaconda, something went wrong and I started having this problem.
I tried all the solutions but nothing worked. I decided to reinstall Python. I uninstalled with no issues (the scripts
and lib/site-packages
directories were not deleted, but I assume that's the correct behavior) and when I install again, all the executables and files in the main directory, including python.exe, are not installed. I also tried the web installer but got the same results.
If Python cannot be reinstalled, that means that when I uninstalled it something remained in Windows. How to get rid of Python completely?