Steps To Install Pyang On Windows 7

Pyang is an extremely useful tool for

  • Validating YANG Files
  • Generating UML diagrams from YANG Models
  • Generating tree representation of YANG models for quick visulization

For more information on pyang, refer this link.

Below are the steps to install pyang on windows 7.

Step 1: Install Git Bash

Since you must be using Git already, I assume you already have Git Bash installed. If not, refer to this link.

Step 2: Install Python

  • Download latest version of Python from this link.
  • Run downloaded file python-3.3.4.msi by double clicking on it.
  • Once installation is complete, add it’s location in Path environment variable. (Open “System -> Advanced system settings -> Environment Variables”. Under System variables edit Path by adding C:\Python33)
  • Open Git Bash terminal and run python -V to verify that python is installed.

Step 3: Install Pyang

  • Download latest version of Pyang from this link. Extract zip file.
  • Open Git Bash terminal.
  • From terminal go to the location where Pyang is download.
  • Run source ./env.sh
  • Run python setup.py install
  • Once installed, update Path environment variable by adding C:\pyang-1.4.1.tar\pyang-1.4.1\bin
  • Open another Git Bash terminal.
  • Run pyang -v to check if Pyang is installed.

 

Comments

  1. says

    Hey There. I discovered your blog using msn. This
    is an extremely smartly written article. I will
    be sure to bookmark it and return to learn extra of
    your useful information. Thanks for the post. I will definitely return.

  2. bharath says

    installed pyang as per the above procedure but unable to find the path – C:\pyang-1.4.1.tar\pyang-1.4.1\bin. so unable to update the system env variable. it got installed in the below path but there is no bin file here.

    Installed c:\users\bshiva\appdata\local\programs\python\python35\lib\site-packages\pyang-1.7.2-py3.5.egg
    Processing dependencies for pyang==1.7.2
    Finished processing dependencies for pyang==1.7.2

    Please let me know how to start the pyang tool and how to make it work here. what is the path to be used in system enn path variable.

  3. says

    Hello admin, i must say you have high quality content here.
    Your page should go viral. You need initial traffic only.

    How to get it? Search for: Mertiso’s tips go viral

Leave a Reply

Your email address will not be published. Required fields are marked *