Skip to content

Commit c65084e

Browse files
author
Stephanie Reeder
committed
add instructions for how to install pyodbc for mac
1 parent a619aff commit c65084e

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,21 @@ Once you have downloaded the source code and all the dependencies installed, run
5757

5858
python ODMTools.py
5959

60+
if installing pyodbc onto a Mac machine please follow these instructions:
61+
62+
pyodbc Configuration
63+
Download the source code ​[here](https://code.google.com/p/pyodbc/downloads/detail?name=pyodbc-3.0.7.zip&can=2&q=)​.
64+
Unzip the directory where ever you want.
65+
Edit ​setup.py​ within the pyodbc directory.
66+
Look for the line that says “OS/X now ships with iODBC.” Right underneath that, remove the letter i from the statement:
67+
settings[‘libraries’].append(‘iodbc’)
68+
69+
so that it reads:
70+
settings[‘libraries’].append(‘odbc’)
71+

72+
Now that the setup.py file is configured correctly, pyodbc is ready to be installed. From your virtual environment, do a pip install of pyodbc and use the modified package.
73+
pip install -e PATH_TO_PYODBC
74+
6075

6176
Sponsors
6277
---------

0 commit comments

Comments
 (0)