pyversion Version Parser for Python libraries Installation pip install -r requirements.txt python setup.py install Example from pyversion import version, get_path, get_dir print version('jinja2') print get_path('os') print get_dir('os')