Skip to content
Advertisement

Python version not found when I run python–version via powershell command window nor python shell itself. How do i fix this? [closed]

PS C:UsersLENOVO> python–version python–version : The term ‘python–version’ is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1

  • python–version
  •   + CategoryInfo          : ObjectNotFound: (python--version:String) [], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException
    

Advertisement

Answer

have you tried it with space in between? python --version

Advertisement