pip install 给出:跳过不兼容的 python 库和 gcc 失败,退出状态为 1
pip install gives: skipping incompatible python libs and gcc failed with exit status 1
我正在尝试在 windows 8 上安装 cytoolz,运行 "pip install cytoolz" 给我:
c:/program files/mingw-builds/x64-4.8.1-posix-seh-rev5/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/../../../../x86_64-w64-mingw32/bin/ld.exe:
skipping incompatible C:\Python34\libs/libpython34.a when searching for -lpython34
c:/program files/mingw-builds/x64-4.8.1-posix-seh-rev5/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/../../../../x86_64-w64-mingw32/bin/ld.exe:
skipping incompatible C:\Python34\libs/python34.lib when searching for -lpython34
c:/program files/mingw-builds/x64-4.8.1-posix-seh-rev5/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/../../../../x86_64-w64-mingw32/bin/ld.exe:
skipping incompatible C:\Python34\libs\libpython34.a when searching for -lpython34
c:/program files/mingw-builds/x64-4.8.1-posix-seh-rev5/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/../../../../x86_64-w64-mingw32/bin/ld.exe:
skipping incompatible C:\Python34\libs/libpython34.a when searching for -lpython34
c:/program files/mingw-builds/x64-4.8.1-posix-seh-rev5/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/../../../../x86_64-w64-mingw32/bin/ld.exe:
skipping incompatible C:\Python34\libs/python34.lib when searching for -lpython34
c:/program files/mingw-builds/x64-4.8.1-posix-seh-rev5/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/../../../../x86_64-w64-mingw32/bin/ld.exe:
skipping incompatible C:\Python34\libs\python34.lib when searching for -lpython34
c:/program files/mingw-builds/x64-4.8.1-posix-seh-rev5/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/../../../../x86_64-w64-mingw32/bin/ld.exe:
cannot find -lpython34
collect2.exe: error: ld returned 1 exit status
error: command 'C:\Program Files\mingw-builds\x64-4.8.1-posix-seh-rev5\mingw64\bin\gcc.exe' failed with exit status 1
然而.lib 和.a 位于C:\Python34\libs。我发现的大多数解决方案都是关于安装 python-dev,但我在 windows... 从我读过的内容来看,我认为这是 mingw 和 [=24= 之间的链接问题] lib(不确定这是什么意思),但是路径 C:\Python34 是正确的,所以我不明白为什么找不到库或不兼容。
我之前的问题是找不到我vsvarsall.bat,我用的是this solution。
我不知道为 python 编译 C 代码的第一件事,请不要假设先验知识。
我知道这个问题很老了,但最近我遇到了类似的问题。问题是我的 gcc 编译器是 64 位的,而我的 python 安装是 32 位的。我使用 64 位版本重新安装了 python 解释器,它不再弹出 "skipping incompatible C:\Python34\libs\python34.lib" 消息。
我正在尝试在 windows 8 上安装 cytoolz,运行 "pip install cytoolz" 给我:
c:/program files/mingw-builds/x64-4.8.1-posix-seh-rev5/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/../../../../x86_64-w64-mingw32/bin/ld.exe:
skipping incompatible C:\Python34\libs/libpython34.a when searching for -lpython34
c:/program files/mingw-builds/x64-4.8.1-posix-seh-rev5/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/../../../../x86_64-w64-mingw32/bin/ld.exe:
skipping incompatible C:\Python34\libs/python34.lib when searching for -lpython34
c:/program files/mingw-builds/x64-4.8.1-posix-seh-rev5/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/../../../../x86_64-w64-mingw32/bin/ld.exe:
skipping incompatible C:\Python34\libs\libpython34.a when searching for -lpython34
c:/program files/mingw-builds/x64-4.8.1-posix-seh-rev5/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/../../../../x86_64-w64-mingw32/bin/ld.exe:
skipping incompatible C:\Python34\libs/libpython34.a when searching for -lpython34
c:/program files/mingw-builds/x64-4.8.1-posix-seh-rev5/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/../../../../x86_64-w64-mingw32/bin/ld.exe:
skipping incompatible C:\Python34\libs/python34.lib when searching for -lpython34
c:/program files/mingw-builds/x64-4.8.1-posix-seh-rev5/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/../../../../x86_64-w64-mingw32/bin/ld.exe:
skipping incompatible C:\Python34\libs\python34.lib when searching for -lpython34
c:/program files/mingw-builds/x64-4.8.1-posix-seh-rev5/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/../../../../x86_64-w64-mingw32/bin/ld.exe:
cannot find -lpython34
collect2.exe: error: ld returned 1 exit status
error: command 'C:\Program Files\mingw-builds\x64-4.8.1-posix-seh-rev5\mingw64\bin\gcc.exe' failed with exit status 1
然而.lib 和.a 位于C:\Python34\libs。我发现的大多数解决方案都是关于安装 python-dev,但我在 windows... 从我读过的内容来看,我认为这是 mingw 和 [=24= 之间的链接问题] lib(不确定这是什么意思),但是路径 C:\Python34 是正确的,所以我不明白为什么找不到库或不兼容。
我之前的问题是找不到我vsvarsall.bat,我用的是this solution。
我不知道为 python 编译 C 代码的第一件事,请不要假设先验知识。
我知道这个问题很老了,但最近我遇到了类似的问题。问题是我的 gcc 编译器是 64 位的,而我的 python 安装是 32 位的。我使用 64 位版本重新安装了 python 解释器,它不再弹出 "skipping incompatible C:\Python34\libs\python34.lib" 消息。