cygwin 中的 libpython2.7.dll.a

libpython2.7.dll.a in cygwin

我在 cygwin 下安装的应用程序需要库 libpythonX.Y.dll.aX - 主要版本,Y - 次要版本)。我只找到 libpython2.7.dlllibpython2.7a。如何获得libpython2.7.dll.a?

要查找所需的包,您可以使用 cygcheck

cygcheck -p libpython2.7.dll.a

Found 2 matches for libpython2.7.dll.a
python-devel-2.7.12-1 - python-devel: Python language interpreter (installed binaries and support files)
python-2.7.10-1 - python: Python language interpreter (installed binaries and support files)

因此您需要安装 python-devel 版本 2.7.12-1。
cygwin 包 python-devel 是从 python 包的拆分创建的,在上一个版本中。