Sonntag, 26. Dezember 2010

Enabling support for DB2 and Python/Django/SQLAlchemy on Mac OS X Snow Leopard

This is the Python version of a post I made about Ruby a few days ago.

Now that Mac OS X 10.6 is out, it?s time to leave the world of 32 bit computing behind. The pre-installed Python interpreter will run in 64 bit mode by default, so you may need to pay attention when installing some C-based eggs.

Assuming you have DB2 Express-C installed already, the ibm_db Python egg for DB2 can easily be installed by following these simple steps:

This will install the ibm_db C driver, and the ibm_db_dbi Python module that complies to the DB-API 2.0 specification.

You can verify that the installation was successful my running the following:

Now, for the Django adapter, install Django first (if you haven?t done so already):

The Django adapter can then be installed as follows:

Finally, if have installed SQLAlchemy and wish to install the DB2 adapter for it, run:

Please let me know if you encounter any issues, I?d be glad to help you.


If you enjoyed this post, then make sure you subscribe to my Newsletter and/or Feed.

Comments are closed.



Powered by WizardRSS | Work At Home Jobs

Source: http://programmingzen.com/2009/09/08/enabling-support-for-db2-and-pythondjangosqlalchemy-on-mac-os-x-snow-leopard/

solar led lantern dual fuel lantern coleman lantern radio coleman lantern repair camping led lantern

Keine Kommentare:

Kommentar veröffentlichen