Blogs

Scripting How-To: Install the Junos PyEZ library

By Erdem posted 04-12-2014 20:02

  

Install the PyEZ Library

 

Junos PyEZ has been built and tested with Python 2.6 and 2.7.

 

NOTE: Earlier versions of Python are known not to work. Additionally, no testing has been performed with Python 3.3 at this time.

 

System Requirements

 

Some of the project dependencies require OS system libraries. The ncclient package specifically requires libxml2 and libxslt installed on the system.
 
IMPORTANT: Before you begin installing Junos PyEZ, make sure that you have these libraries installed.

 

Ubuntu/Debian

  • python-pip
  • python-dev
  • libxml2-dev
  • libxslt-dev
  • libssl-dev
  • libffi-dev

Fedora

  • python-pip
  • python-devel
  • libxml2-devel
  • libxslt-devel
  • libffi-devel
  • gcc
  • openssl

FreeBSD

  • py27-pip
  • libxml2
  • libxslt

 

PyPI

 

Versions of Junos PyEZ are uploaded to PyPI for ease of installation.

 

NOTE: This process assumes "pip" is for Python 2.7.

 

1 # Install the Junos "EZ" library:
2 pip install junos-eznc

 

Github

 

To get the "latest and greatest" code, you can obtain it directly from github.

 

NOTE: This process assumes "python" is version 2.7 and the git system package has been installed.

 
2  
3 or
4  

 

 


#Python
#installation
#How-To
#junospyez