Search code examples
cmdcommandprompt

Error in cmd as python version not showing


While i write

python --version

I get nothing as a result in command prompt. I should get the version details of python, correct? how to rectify it?

Its the same for pip also, which file to download and how to install them, .whl or .grz? The guide shows method using pip --version which again is not working in cmd at the first place.


Solution

  • You did not say how your issue was solved, so I had to figure it out myself. My problem was a 0kb Python.exe in the WindowsApps folder, which is in the PATH environmental variable. I just deleted that file, and everything worked.