繁体   English   中英

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

[英]command 'gcc' failed with exit status 1

我尝试了所有答案,但无法解决安装 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

根据here for error: cannot find -lmsvcr100 you need to first install Microsoft Visual C++ 2010 Redistributable Package,其次,将msvcr100.dll复制到C:\Python33\libs链接目录是 C:\Python44\libs 因为两者-lpython-lmsvcr100在编译期间指向同一个位置,因此它们必须位于同一个目录中。当我需要安装 Cython 时,此解决方案对我有用。

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

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

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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM