I am trying to install pyq for Python using pip. However, it fails during the build process on the following command:
C:\FAST\anacondaforPython3.5.2\4.1.1\Scripts\gcc.bat -shared -s build\temp.win-amd64-3.5\Release\src\pyq\_k.o build\temp.win-amd64-3.5\Release\src\pyq\_k.cp35-win_amd64.def -Lc:\fast\anacondaforpython3.5.2\4.1.1\libs -Lc:\fast\anacondaforpython3.5.2\4.1.1\PCbuild\amd64 -lpython35 -lvcruntime140 -o build\lib.win-amd64-3.5\pyq\_k.cp35-win_amd64.pyd src\pyq\kx\w32\q.lib
which leads to the following syntax error
:
c:/fast/anacondaforpython3.5.2/4.1.1/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/bin/ld.exe: build\temp.win-amd64-3.5\Release\src\pyq\_k.cp35-win_amd64.def:1: syntax error
c:/fast/anacondaforpython3.5.2/4.1.1/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/bin/ld.exe:build\temp.win-amd64-3.5\Release\src\pyq\_k.cp35-win_amd64.def: file format not recognized; treating as linker script
c:/fast/anacondaforpython3.5.2/4.1.1/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/bin/ld.exe:build\temp.win-amd64-3.5\Release\src\pyq\_k.cp35-win_amd64.def:1: syntax error
collect2.exe: error: ld returned 1 exit status
error: command 'C:\\FAST\\anacondaforPython3.5.2\\4.1.1\\Scripts\\gcc.bat' failed with exit status 1
I'm at a loss at how to resolve this.
For a start, where can I find the offending file build\temp.win-amd64-3.5\Release\src\pyq\_k.cp35-win_amd64.def
? I've searched all over my C:\
drive and cannot find this file.
Does anyone have any ideas how to debug this?
I'm using GCC 4.7 with Windows 10.