Windows mingw64 compile pthon module error

Wannaphong zxcvbm4 at
Fri Sep 11 18:52:55 CEST 2015

I using Python 3.4.3 (v3.4.3:9b73f1c3e601, Feb 24 2015, 22:44:40) [MSC v.1600 64 bit (AM
D64)] on win32. I install tdm64-gcc-5-1-0.exe. I setting from , but I using "pip install scandir". 
    C:\TDM-GCC-64\bin\x86_64-w64-mingw32-gcc.exe -shared -s build\
-3.4\Release\_scandir.o build\\Release\_scandir.def -LC:\py34\
libs -LC:\py34\PCbuild\amd64 -lpython34 -o build\\_scandir.pyd

    C:\py34\libs/python34.lib: error adding symbols: File in wrong format

    collect2.exe: error: ld returned 1 exit status

    error: command 'C:\\TDM-GCC-64\\bin\\x86_64-w64-mingw32-gcc.exe' failed with
 exit status 1

    Command "C:\py34\python.exe -c "import setuptools, tokenize;__file__='C:\\Us
ompile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), _
_file__, 'exec'))" install --record C:\Users\B15D~1\AppData\Local\Temp\pip-hhbfw
636-record\install-record.txt --single-version-externally-managed --compile" fai
led with error code 1 in C:\Users\B15D~1\AppData\Local\Temp\pip-build-vnnkz86l\s
I apologize here. I am not good in English. Thank you.

More information about the Python-list mailing list