I am learning about python and it's pyang library for parsing .yang files. I could successfully install both python and pip. And confirmed that they work fine through cmd. I then installed pyang through the command:
C:\_pyangWorkspace\pip install pyang
Requirement already satisfied: pyang in c:\users\my-local-directory\local\programs\python\python38\lib\site-packages (2.3.2)
Requirement already satisfied: lxml in c:\users\my-local-directory\local\programs\python\python38\lib\site-packages (from pyang) (4.5.2)
However when I execute the below command in Windows cmd to parse a yang file I get the error as below:
C:\_pyangWorkspace>pyang -f tree ietf-interfaces.yang
'pyang' is not recognized as an internal or external command,
operable program or batch file.
But this works fine when executed from a Git Bash
. Are there some internal linux dependencies for pyang?