-
Notifications
You must be signed in to change notification settings - Fork 27
Installation
Minimum supported version required for Python is version 3.13.
- Download the latest version of Python 3 from the official Python website.
Important: Check the options as seen below and click on Install Now

Post installation, Disable path length limit and then close.
- Verify the installation by running
python --versionon command prompt. It should show the current version.
Common troubleshooting
If Windows Store opens up the Python 3.13 page, then click on Get button.
If you encounter the python is not recognized error, please refer to online resources for instructions on how to manually add Python to your PATH.
Steps (1) and (2) are optional for Windows and can be skipped.
- Create a virtual environment Open the command prompt in your folder and run below (replace python3 with python in case of error):
python3 -m venv myvenv- Activate the virtual environment For Windows:
myvenv\Scripts\activateThis should show a (myvenv) prefix in the command prompt.
- Set Connection String as ENV variable (replace with your server details) For Windows:
set DB_CONNECTION_STRING=SERVER=tcp:sample.database.windows.net,1433;DATABASE=sample;UID=sample;PWD=sample;Encrypt=yes;Using EntraID Authentication
In the server string, use Authentication=ActiveDirectoryPassword; to use EntraID UID and Password (applicable for all platforms).
For Windows only, use Authentication=ActiveDirectoryInteractive; to use interactive MFA.
- Run pip install to install the package in your environment
pip install mssql-python --upgradeUse --upgrade to keep it updated to the latest version.
- Run the main\sample scripts for test
python main.py