title: Python Azure SQL - 'ODBC Driver 17 for SQL Server' : file not found
body: <p>I have to connect my script to a MSSQL hosted on Azure. I followed this tutorial from Microsoft : <a href="https://www.microsoft.com/en-us/sql-server/developer-get-started/python/mac/step/2.html" rel="nofollow noreferrer">https://www.microsoft.com/en-us/sql-server/developer-get-started/python/mac/step/2.html</a></p>
  
  <p>I adapted it a bit for my need but the connection part is the same.
  Then I'm have this error : <code>('01000', "[01000] [unixODBC][Driver Manager]Can't open lib 'ODBC Driver 17 for SQL Server' : file not found (0) (SQLDriverConnect)")</code></p>
  
  <p>I have installed the ODBC Driver with <code>brew</code> on MacOS and I can connect to my DB with the terminal with <code>sqlcmd</code> command.</p>
  
  <p>EDIT : the <code>brew</code> option <code>--no-sandbox</code> for msodbcsql17 doesn't work for me. Issue seems to come because of this.</p>