Installing Python support on Windows

 To prepare your computer
  1. Install Python. For a list of supported versions, see [external link] http://www.sybase.com/detail?id=1068981.

  2. Install the ctypes module if missing.

 To install the sqlanydb module on Windows
  1. At a system command prompt, change to the SDK\Python subdirectory of your SQL Anywhere installation.

  2. Run the following command to install sqlanydb.

    python setup.py install
  3. To test sqlanydb, copy the sample database file to your SDK\Python directory and run a test.

    copy "samples-dir\demo.db" .
    dbeng12 demo
    python Scripts\test.py

    If the tests do not run, ensure that the bin32 or bin64 subdirectory of the SQL Anywhere installation is in your path.

The sqlanydb module is now ready to use.