Saturday, September 27, 2014

Problems with psycopg2 on Windows 7 64 bit

I have installed Python 3.4, Django 1.7, Postgresql 9.3 and psycopg2-2.5.4 (using the Windows installer at

When I try a syncdb command from my virtualenv I get the following error:

(landy) C:\landy\cresta>python syncdb
Traceback (most recent call last):
  File "C:\landy\lib\site-packages\django\db\backends\postgresql_psycopg2\base.p
y", line 23, in <module>
    import psycopg2 as Database
ImportError: No module named 'psycopg2'

I am not sure if I needed to do:
> pip install psycopg2

...which gives the following:

error: Unable to find vcvarsall.bat

I have Visual Studio 2012 installed if that helps?  Any other ideas?


You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To post to this group, send email to
Visit this group at
To view this discussion on the web visit
For more options, visit

No comments:

Post a Comment