找不到lpython2.7

Can't find lpython2.7

/usr/lib/gcc/x86_64-pc-cygwin/5.4.0/../../../../x86_64-pc-cygwin/bin/ld: cannot find -lpython2.7 collect2: error: ld returned 1 exit status

我正在 cygwin 上工作,尝试安装 sentry 时遇到了这个错误?

谁能告诉我为什么 运行 遇到这个问题,这个问题与 python-dev 包有关吗?

另外,如果需要,如何在 cygwin 上安装 python-dev?

要搜索包含文件的包,您可以使用 cygcheckhttps://cygwin.com/packages/

在您的案例中使用 cygcheck:

$ cygcheck -p libpython2.7.dll.a
Found 3 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)
python2-devel-2.7.13-1 - python2-devel: Python 2 language interpreter

因此您需要使用 Cygwin Setup 安装 python2-devel 软件包 因为它是带有正确文件的最后一个版本。
不要对 Cygwin Setup

中已经可用的包使用 pip install