i got this error when installing pysqlite on a 64bit pc i found this solution so i thought i would post a link
reg fix (http://tech.valgog.com/2010/01/after-installing-64-bit-windows-7-at.html)
I was having problems when installing 64-bit Python on a 64-bit machine as well, but I "fixed" it by using 32-bit Python instead.
this just adds the install location to the pc registry
I know, but the problems I was having were other problems.