I uninstalled all my versions of python and made sure that they are not showing up in Control Panel. Then I went to cmd and typed python and in a magic way, python 3.7.7 showed up. How am I supposed to uninstall it?
OS: WINDOWS 10 PRO
Go to windows command prompt and type:
where python
Should give you the path to the location of the binary excutable.
In the prompt you can also use
py --list-paths
You could also start python and execute this script
import os
import sys
os.path.dirname(sys.executable)
Also after uninstalling try to restart. (Besides I don't believe this will solve it).
After located try to follow the steps provided by aditya: here
- Go to C:\Users\%USERNAME%\AppData\Local\Programs
- Delete Python
- Folder Go to Control Panel >> Uninstall a Program
- Right Click on Python and then Change/Modify
- Click on Repair Python. Note: This may or may not fail, but be patient
- Now Again go to step 3
- Now, after step 3, uninstall Python
Quote of above link, work of Aditya Borka