3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-11 03:33:35 +00:00
z3/python/README-linux.txt
Leonardo de Moura bd1729239b Working on python bindings
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2012-10-09 06:39:17 -07:00

27 lines
820 B
Plaintext

In your Python application you should include:
from z3 import *
Installing the Z3 Python bindings
Option 1: Install Z3 Python bindings in your python distribution
----------------------------------------------------------------
To install the Z3 python bindings in your system, use
sudo make install-python
in the Z3 root directory.
After installing the Z3 python bindings, you can try the example application
python example.py
Option 2: Set PYTHONPATH
------------------------
You may also use Z3Py by including this directory in your PYTHONPATH.
Z3Py searches for libz3.so in set of predefined places that includes the directory where Z3Py is stored.
You may also manually initialize Z3Py using the command z3.init(path-to-libz3.so)
Learn more about Z3Py at:
http://rise4fun.com/Z3Py/tutorial/guide