PyQ can be installed using the standard Python package management tool - pip. See Installing Python Modules for details. To install the latest version, run the following command
$ pip install -i https://pyq.enlnt.com --no-binary pyq pyq
PyQ has been tested and is supported on Linux and macOS 10.11 or later.
PyQ has support for Solaris, but has not been tested recently.
Windows is not supported yet.
- kdb+ 2.8 or later;
- Python 2.7, or 3.5 or later;
- GNU make, gcc or clang.
Use following pip command to install the latest version of PyQ into your environment.
$ pip install -i https://pyq.enlnt.com --no-binary pyq pyq
To install another version, specify which version you would like to install:
$ pip install -i https://pyq.enlnt.com --no-binary pyq pyq==3.8
Get the source code using one of the following:
Install the sources into your environment using pip:
$ pip install <path to the source>
PyQ was designed to work inside virtual environments. You can setup your system to use different versions of Python and/or kdb+ by using separate virtual environments.
In order to create a virtual environment, you need to install the virtualenv package:
$ [sudo] pip install virtualenv
Create a new virtualenv and activate it:
$ virtualenv path/to/virtualenv
$ source path/to/virtualenv/bin/activate
Download kdb+ and save into your ~/Downloads
folder. Extract it into virtualenv:
$ unzip ${HOME}/Downloads/macosx.zip -d ${VIRTUAL_ENV}
If you have licensed version of the kdb+, you should create directory for it first:
$ mkdir -p ${VIRTUAL_ENV}/q && unzip path/to/m64.zip -d ${VIRTUAL_ENV}/q
Copy your kdb+ license file to ${VIRTUAL_ENV}/q
or set the QLIC
environment variable to the directory containing the license file and add it to the virtualenv's activate
file:
$ echo "export QLIC=path/to/qlic" >> ${VIRTUAL_ENV}/bin/activate
$ source ${VIRTUAL_ENV}/bin/activate
Install PyQ:
$ pip install -i https://pyq.enlnt.com --no-binary pyq pyq