命令'gcc'失败,退出状态为1

2024-06-25 05:31:21 发布

您现在位置:Python中文网/ 问答频道 /正文

我尝试了所有的答案,但我不能解决安装Biopython软件包的问题 我安装了Mingw,但是当我尝试安装包时:python setup.py install 我得到以下错误:

    running install
    running build
    running build_py
    running build_ext
    building 'Bio.cpairwise2' extension
    c:\mingw\bin\gcc.exe -mno-cygwin -mdll -O -Wall -Ic:\Python33\include -Ic:\Pytho
    n33\include -c Bio/cpairwise2module.c -o build\temp.win-amd64-3.3\Release\bio\cp
    airwise2module.o
    writing build\temp.win-amd64-3.3\Release\bio\cpairwise2.def
    c:\mingw\bin\gcc.exe -mno-cygwin -shared -s build\temp.win-amd64-3.3\Release\bio
    \cpairwise2module.o build\temp.win-amd64-3.3\Release\bio\cpairwise2.def -Lc:\Pyt
    hon33\libs -Lc:\Python33\PCbuild\amd64 -lpython33 -lmsvcr100 -o build\lib.win-am
    d64-3.3\Bio\cpairwise2.pyd
    c:/mingw/bin/../lib/gcc/mingw32/4.3.3/../../../../mingw32/bin/ld.exe: c:\Python3
    3\libs/python33.lib(python33.dll): Recognised but unhandled machine type (0x8664
    ) in Import Library Format archive
    c:/mingw/bin/../lib/gcc/mingw32/4.3.3/../../../../mingw32/bin/ld.exe: cannot fin
    d -lmsvcr100
    collect2: ld returned 1 exit status

error: command 'gcc' failed with exit status 1

Tags: buildreleasebinlibexewintemprunning
1条回答
网友
1楼 · 发布于 2024-06-25 05:31:21

你会得到两个错误。第一个是你的:

error: cannot find -lmsvcr100
error: command 'gcc' failed with exit status 1

在解决第一个错误后,您将得到第二个错误:

error: unrecognized command line option '-mno-cygwin'
error: command 'gcc' failed with exit status 1

它们是两个不同的错误,有两个不同的解决方案。你可以找到更多的here

相关问题 更多 >