我试图使用python 2.7在Windows 10安装pyslalib package和不断收到以下内容:无法使用python2.7/MINGW在Windows上安装pyslalib包10
“collect2.exe:错误:LD返回1退出状态“
当我尝试运行”python setup.py install“时出现消息。我认为这可能是我的mingw配置的问题,但我似乎无法找到问题。
任何有关这个问题的帮助将不胜感激。我在周末的大部分时间都在吃这个。
感谢,
输出错误是:
C:\Python27\libs/libpython27.a(dmmes01026.o):(.idata$7+0x0): undefined reference to `_head_C__build27_cpython_PCBuild_libpython27_a'
C:\Python27\libs/libpython27.a(dmmes00281.o):(.idata$7+0x0): undefined reference to `_head_C__build27_cpython_PCBuild_libpython27_a'
C:\Python27\libs/libpython27.a(dmmes00105.o):(.idata$7+0x0): undefined reference to `_head_C__build27_cpython_PCBuild_libpython27_a'
C:\Python27\libs/libpython27.a(dmmes00253.o):(.idata$7+0x0): undefined reference to `_head_C__build27_cpython_PCBuild_libpython27_a'
C:\Python27\libs/libpython27.a(dmmes00227.o):(.idata$7+0x0): undefined reference to `_head_C__build27_cpython_PCBuild_libpython27_a'
C:\Python27\libs/libpython27.a(dmmes00712.o):(.idata$7+0x0): more undefined references to `_head_C__build27_cpython_PCBuild_libpython27_a' follow
collect2.exe: error: ld returned 1 exit status
我有同样的问题,你的小费帮助我解决了我的问题。 – alex
该链接处于离线状态,archive.org有一个副本:https://web.archive.org/web/20000829082204/http://starship.python.net/crew/kernr/mingw32/pexports-0.42h.zip编辑 – n611x007
这个问题似乎已经在Python 2.7.11(12月5日发布)中解决了,所以现在最简单的解决方案就是更新。 –