This one should work.
http://www.stickpeople.com/projects/python/win-psycopg/ 



Regards,
Xin Huang
 
From: Rasjid Wilcox
Date: 2015-03-23 21:49
To: melbourne-pug
Subject: Re: [melbourne-pug] wheel has fallen off
Hi Mike,
 
I generally use the binaries at 
http://www.stickpeople.com/projects/python/win-psycopg/, and use 
easy_install from within the virtualenv to actually install them.
 
Cheers,
 
Rasjid.
 
 
On 23/03/2015 6:38 PM, Mike Dewhirst wrote:
> I'm failing to install psycopg2 in a virtualenv and hoping someone can 
> help. My efforts so far have blown it away across all virtualenvs. I 
> have obviously installed an incompatible DLL file somewhere as follows 
> ...
>
>   File 
> "C:\Users\mike\env\xxdx\lib\site-packages\django\db\backends\postgresql_psycopg2\base.py",
>  
> line 25, in <module>
>     raise ImproperlyConfigured("Error loading psycopg2 module: %s" % e)
> django.core.exceptions.ImproperlyConfigured: Error loading psycopg2 
> module: DLL load failed: %1 is not a valid Win32 application.
>
>
> This is a Windows 8.1 laptop in an activated py2.7.9 env and Chris 
> Gohlke's pre-compiled (where I think "pre-" means "presumably") 
> psycopg2-2.5.5-cp27-none-win_amd64.whl from 
> http://www.lfd.uci.edu/~gohlke/pythonlibs/
>
> I realise Mr Gohlke offers no warranty/support etc.
>
> Pip 6.08 doesn't like me using such a downloaded wheel ...
>
>
> (xxdx) C:\Users\mike\env\xxdx\ssds>pip install 
> C:\Users\mike\Downloads\python\postgresql\psycopg2-2.5.5-cp27-none-win_amd64.whl
> psycopg2-2.5.5-cp27-none-win_amd64.whl is not a supported wheel on 
> this platform.
>
> ... and demands a compiler if I use the more common approach ...
>
> (xxdx) C:\Users\mike\env\xxdx>pip install psycopg2
> Collecting psycopg2
>   Downloading psycopg2-2.6.tar.gz (367kB)
>     100% |################################| 368kB 650kB/s
> Installing collected packages: psycopg2
>   Running setup.py install for psycopg2
>     building 'psycopg2._psycopg' extension
>     error: Microsoft Visual C++ 9.0 is required (Unable to find 
> vcvarsall.bat). Get it from http://aka.ms/vcpython27
>
> Unfortunately, http://aka.ms/vcpython27 eventually leads to 
> http://www.microsoft.com/en-us/download/confirmation.aspx?id=44266 and 
> just does nothing. Having studied that page carefully and finding a 
> "click here" if nothing happens after 30 seconds it seems there is no 
> server to be found on the other side of that "click here".
>
> Does anyone have any suggestions?
>
> Thanks
>
> Mike
> _______________________________________________
> melbourne-pug mailing list
> [email protected]
> https://mail.python.org/mailman/listinfo/melbourne-pug
 
_______________________________________________
melbourne-pug mailing list
[email protected]
https://mail.python.org/mailman/listinfo/melbourne-pug
_______________________________________________
melbourne-pug mailing list
[email protected]
https://mail.python.org/mailman/listinfo/melbourne-pug

Reply via email to