Installation

Prerequisites

Debian

$ apt-get install build-essential

And python 2 headers:

$ apt-get install python-dev

Or, python 3 headers:

$ apt-get install python3-dev

For windows , you have to install Microsoft Visual Studio or C++ build tools, see:

From PyPI

pip:

$ pip install khayyam

Specific version:

$ pip install "khayyam>=2.9.6"

easy_install:

$ easy_install khayyam

From Source

$ cd path/to/source/directory
$ pip install .

or:

$ python setup.py install

You may use the source folder in-place as a python library in sys.path, so you have to build the C extensions before using the library:

$ cd path/to/source/directory
$ python setup.py build_ext --inplace

Development, editable:

$ cd path/to/source/directory
$ python setup.py build_ext --inplace
$ nosetests
$ pip install -e .

From Github

Latest development code:

$ pip install git+https://github.com/pylover/khayyam.git