CMD + K

mssql-python

Community

Microsoft driver for Python to interact with SQL Server and Azure SQL.

Installation

To install this package, run one of the following:

Conda
$conda install microsoft::mssql-python

Try This Package Beta

Usage Tracking

1.16.0
0.0.0
2 / 8 versions selected
Downloads (Last 6 months): 0

Description

mssql-python is a DB API 2.0 (PEP 249) compliant driver for SQL Server, Azure SQL, and Azure Synapse. This conda package is self-contained: the proprietary Microsoft ODBC Driver 18 payload ships inside it (the same model as the v1.11.0 wheel), so no separate driver package is required.

macOS note: encrypted connections (Encrypt=yes, the default) require system OpenSSL -- install it with brew install openssl (Homebrew) or via MacPorts. The bundled ODBC driver loads OpenSSL from standard system locations, not from the conda env, so without it an encrypted connect fails with "OpenSSL library could not be loaded". Windows (SChannel) and Linux are fully self-contained.

About

Summary

Microsoft driver for Python to interact with SQL Server and Azure SQL.

Last Updated

Oct 13, 2026 at 15:03

License

MIT AND LicenseRef-Microsoft-Proprietary

Supported Platforms

win-64
linux-64
linux-aarch64
macOS-64
macOS-arm64
win-arm64