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.
Possibly related posts:
- Installing the Ruby driver for DB2 on Mac OS X Snow Leopard
- IBM releases DB2 adapter for SQLAlchemy
- Guide to setting up the IBM Ruby and Python drivers for DB2 on Linux (32 or 64 bit)
- The DB2 adapter now supports Django 1.1
- Installing Django with PostgreSQL on Ubuntu
If you enjoyed this post, then make sure you subscribe to my Newsletter and/or Feed.
Legal | Politics | Sports | Teens | Webmasters
red glass lamp glass gourd lamp glass ball lamp glass lamp repair stained glass lamp shades
Keine Kommentare:
Kommentar veröffentlichen