我正在尝试使用pip为Python安装pyq。但是,在以下命令的构建过程中,它会失败:
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
会导致以下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
我不知如何解决此问题。
首先,我在哪里可以找到有问题的文件build\temp.win-amd64-3.5\Release\src\pyq\_k.cp35-win_amd64.def
?我在C:\
驱动器中进行了搜索,找不到该文件。
有人有什么想法可以调试吗?
我正在Windows 10上使用GCC 4.7。