From: | Joe Abbate <jma(at)freedomcircle(dot)com> |
---|---|
To: | psycopg(at)postgresql(dot)org |
Subject: | Re: Installing via pip under Win7 + virtualenv + VC++2008 |
Date: | 2011-06-03 00:48:04 |
Message-ID: | 4DE82F44.2010509@freedomcircle.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | psycopg |
On 06/02/2011 07:07 PM, Stephen Lacy wrote:
> But, when running python, I get this:
>
> Python 2.7.1 (r271:86832, Nov 27 2010, 18:30:46) [MSC v.1500 32 bit
> (Intel)] on
> win32
> Type "help", "copyright", "credits" or "license" for more information.
>>>> import psycopg2
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> File "psycopg2\__init__.py", line 71, in <module>
> from psycopg2._psycopg import BINARY, NUMBER, STRING, DATETIME, ROWID
> ImportError: DLL load failed: The specified module could not be found.
>>>>
>
> Any debugging help would be greatly appreciated. I know I can install
> win-psycopg2, but I'd rather just get the pip install working for
> everyone, since it automates the install in a scriptable way.
The first thing I'd do is
import sys
print sys.path
and take a look at the list of dirs. On Windows XP, non-virtualenv, I
see Python\lib, Python\DLLs, Python\lib\plat-win,
Python\lib\site-packages, among others.
Joe
From | Date | Subject | |
---|---|---|---|
Next Message | Daniele Varrazzo | 2011-06-03 07:54:21 | Re: Installing via pip under Win7 + virtualenv + VC++2008 |
Previous Message | Stephen Lacy | 2011-06-02 23:07:04 | Installing via pip under Win7 + virtualenv + VC++2008 |