def versions():
    """Report versions"""
    stream = sys.stdout if _PY3K else sys.stderr
    print('PyQ', __version__, file=stream)
    if _np is not None:
        print('NumPy', _np.__version__, file=stream)
    print('KDB+ %s (%s) %s' % tuple(q('.z.K,.z.k,.z.o')), file=stream)
    print('Python', sys.version, file=stream)
Report versions