Title: Install mssql-python - Python driver for SQL Server | Microsoft Learn
Open Graph Title: Install mssql-python - Python driver for SQL Server
Description: Learn how to install the mssql-python driver on Windows, Linux, and macOS. No external ODBC driver is required.
Open Graph Description: Learn how to install the mssql-python driver on Windows, Linux, and macOS. No external ODBC driver is required.
Opengraph URL: https://learn.microsoft.com/en-us/sql/connect/python/mssql-python/installation?view=sql-server-ver17
Domain: learn.microsoft.com
| color-scheme | light dark |
| twitter:card | summary_large_image |
| og:type | website |
| og:image:alt | Microsoft Learn |
| og:image | https://learn.microsoft.com/en-us/media/open-graph-image.png |
| platform_id | 57cd5672-1954-47aa-2e68-33a4cb1fd157 |
| scope | sql |
| locale | en-us |
| uhfHeaderId | MSDocsHeader-DocsSQL |
| page_type | conceptual |
| toc_preview | true |
| feedback_system | Standard |
| feedback_product_url | https://feedback.azure.com/d365community/forum/04fe6ee0-3b25-ec11-b6e6-000d3a4f0da0 |
| feedback_help_link_url | https://learn.microsoft.com/answers/tags/191/sql-server |
| feedback_help_link_type | get-help-at-qna |
| recommendations | true |
| breadcrumb_path | ../../../breadcrumb/toc.json |
| monikerRange | >=sql-server-2017 || >=sql-server-linux-2017 || =azuresqldb-current || =azuresqldb-mi-current || =azure-sqldw-latest || =fabric |
| ms.update-cycle | 1825-days |
| author | dlevy-msft-sql |
| ms.author | dlevy |
| ms.reviewer | vanto |
| ms.date | 2026-11-02T00:00:00Z |
| ms.service | sql |
| ms.subservice | connectivity |
| ms.topic | how-to |
| ai-usage | ai-assisted |
| document_id | 94135db2-d1db-8d2f-cfe1-f37906895db3 |
| document_version_independent_id | 94135db2-d1db-8d2f-cfe1-f37906895db3 |
| updated_at | 2026-11-05T18:38:00Z |
| original_content_git_url | https://github.com/MicrosoftDocs/sql-docs-pr/blob/live/docs/connect/python/mssql-python/installation.md |
| gitcommit | https://github.com/MicrosoftDocs/sql-docs-pr/blob/f61ebb1b49145d7c6f06b3116a6de300d93c4e15/docs/connect/python/mssql-python/installation.md |
| git_commit_id | f61ebb1b49145d7c6f06b3116a6de300d93c4e15 |
| monikers | sql-server-ver17 |
| default_moniker | sql-server-ver17 |
| site_name | Docs |
| depot_name | SQL.sql-content |
| schema | Conceptual |
| toc_rel | ../../toc.json |
| pdf_url_template | https://learn.microsoft.com/pdfstore/en-us/SQL.sql-content/{branchName}{pdfName} |
| word_count | 749 |
| config_moniker_range | =azuresqldb-current || =azuresqldb-mi-current || =azure-sqldw-latest || >=sql-server-2017 || >=sql-server-linux-2017 || =fabric || =fabric-sqldb |
| asset_id | connect/python/mssql-python/installation |
| moniker_range_name | a113cbee0bc4eaf354988097828ae950 |
| item_type | Content |
| source_path | docs/connect/python/mssql-python/installation.md |
| previous_tlsh_hash | D7E3E691C71DBA06A985DD263C81DE50F6F5400B27B00B881E2952A1C7FB7FF71B6E9C96DB05DB505332BAA3429AB4AF01857315D13A327704AA84FF8094436767A4373FF3 |
| github_feedback_content_git_url | https://github.com/MicrosoftDocs/sql-docs/blob/live/docs/connect/python/mssql-python/installation.md |
| markdown_url | https://learn.microsoft.com/en-us/sql/connect/python/mssql-python/installation?view=sql-server-ver17&accept=text/markdown |
| cmProducts | https://authoring-docs-microsoft.poolparty.biz/devrel/6ab7faaf-d791-4a26-96a2-3b11738538e7 |
| spProducts | https://authoring-docs-microsoft.poolparty.biz/devrel/302e28b0-1f09-4811-9a9b-2a72e0770581 |
Links:
Viewport: width=device-width, initial-scale=1.0