Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 (中文) » SQL Anywhere 服务器 - 编程 » SQL Anywhere 数据访问 API » SQL Anywhere Python 数据库支持

 

在 Windows 上安装 sqlanydb

♦  准备计算机
  1. 安装 Python 2.4 或更高版本。

  2. 如果 ctypes 模块丢失,则安装 ctypes 模块。

♦  在 Windows 上安装 sqlanydb 模块
  1. 在系统命令提示符处,转到 SQL Anywhere 安装目录的 SDK\Python 子目录。

  2. 运行以下命令安装 sqlanydb。

    python setup.py install
  3. 要测试 sqlanydb,请将示例数据库文件复制到 SDK\Python 目录中,然后进行测试。

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

    如果测试没有运行,请确保路径中包含 SQL Anywhere 安装目录的 bin32bin64 子目录。

现在即可使用 sqlanydb 模块。