title: pyodbc error in macOS
body: <p>I am a novice python programmer and trying to connect to a SQL Server 2017 Instance running on docker using python.</p>
  
  <p>I executed the below commands to install pyodbc :</p>
  
  <pre><code>brew tap microsoft/mssql-release https://github.com/Microsoft/homebrew-mssql-release
  brew install --no-sandbox msodbcsql17 mssql-tools
  brew link msodbcsql17
  brew install unixodbc  --universal
  sudo pip3 install --allow-external pyodbc --allow-unverified pyodbc pyodbc
  </code></pre>
  
  <p>When I try to connect using Python I get below error :</p>
  
  <p><a href="https://i.stack.imgur.com/aDEKb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/aDEKb.png" alt="pyodbc error"></a></p>
  
  <p>I even restarted iPython Notebook. Still same error. 
  When I run <code>ls -ltr in /usr/local/lib/</code> I get :  </p>
  
  <pre><code>lrwxr-xr-x   1 abhilashdk  admin       56 Apr  6 01:36 libmsodbcsql.17.dylib -&gt; ../Cellar/msodbcsql17/17.1.0.1/lib/libmsodbcsql.17.dylib
  </code></pre>
  
  <p>for <code>libmsodbcsql.17.dylib</code>. Why is iPython Notebook not able to find libmsodbcsql.17.dylib. Please help.</p>
  
  <p>Thanks in Advance.</p>