Installation

pyDatalog can be easily installed from the python package library (pypi).

Installation on Windows

    • install python, or better, pypy, in a directory whose path does not have spaces
    • download and run pip-Win, our tiny package manager for Windows
    • enter pip install pyDatalog in the command box of pip-Win, and click run
    • enter pip install sqlalchemy in the command box, and click run

Although you can start programming in Python's IDLE, it is recommended to use a development environment, such as PyCharm.

To later upgrade pyDatalog, restart pip-Win, and enter pip install --upgrade pyDatalog in the command box (or click Upgrade all packages).

Installation on other platforms, using pip

To verify installation, start python IDLE, then type from pyDatalog import pyDatalog (or try import pyDatalog).

Although you can start programming in Python's IDLE, it is recommended to use a development environment, such as PyCharm.

To install an update of pyDatalog, use pip install --upgrade pyDatalog (or upgrade all your packages)

Installation on pypy

    • install pypy
    • download the zip file from pypi, and unzip it to a directory (it will include a setup.py file)
    • go to that unzipped directory in the shell
    • run "pypy setup.py install" from the shell (or "sudo pypy setup.py install" to have admin privilege). Add the full path to pypy if needed. If setup.py is not found, try with Setup.py.
    • install SQLAlchemy in a similar way

To verify installation, run a program using pypy <full path to a pyDatalog example file> . Add the full path to pypy if needed.