After installing pyodbc onto my linux server that runs my scripts I needed to create my development environment on my mac so I could develop the scripts and then transfer them over. I went through a couple of websites to put together my steps:
http://www.christophers.tips/pages/pyodbc_mac.html
https://github.com/mkleehammer/pyodbc/wiki/Connecting-to-SQL-Server-from-Mac-OSX
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew update
brew install unixodbc freetds
Pip install pyodbc
Thanks for this. It saved me a lot of time and frustration. Pyodbc was stubbornly refusing to install. I don’t know what’s specifically in “unixodbc” or “freetds” that fixed it, but I appreciate the succinct solution you provided.
LikeLike