[melbourne-pug] wheel has fallen off

David Micallef dave at montagesoftware.com.au
Mon Mar 23 08:52:59 CET 2015


Hi

You might find you are looking for

Microsoft Visual C++ Compiler for Python 2.7

http://www.microsoft.com/en-au/download/details.aspx?id=44266

If you ever want to compile python extensions for 3.4 on windows the best
way I found to set up is to follow:

http://blog.ionelmc.ro/2014/12/21/compiling-python-extensions-on-windows/

Regards

David

David
+61 3 9036 2788


On 23 March 2015 at 18:38, Mike Dewhirst <miked at dewhirst.com.au> 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
> melbourne-pug at python.org
> https://mail.python.org/mailman/listinfo/melbourne-pug
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/melbourne-pug/attachments/20150323/2995ffcb/attachment.html>


More information about the melbourne-pug mailing list