David

Thanks for these links. I have bookmarked them. The problem is solved now and therefore I don't have to compile for the moment. Fortunately :)

Cheers

Mike

On 23/03/2015 6:52 PM, David Micallef wrote:
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 <[email protected]
<mailto:[email protected]>> 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/
    <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
    <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] <mailto:[email protected]>
    https://mail.python.org/__mailman/listinfo/melbourne-pug
    <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