我正在学习 python,它是用于解析 .yang 文件的 pyang 库。我可以成功安装 python 和 pip。并通过 cmd 确认它们可以正常工作。然后我通过以下命令安装了 pyang:
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)
但是,当我在 Windows cmd 中执行以下命令来解析 yang 文件时,出现如下错误:
C:\_pyangWorkspace>pyang -f tree ietf-interfaces.yang
'pyang' is not recognized as an internal or external command,
operable program or batch file.
但是当从Git Bash
. pyang 是否有一些内部 linux 依赖项?