如何在MSYS2上安装python-dev?

时间:2020-07-17 15:41:17

标签: python pyinstaller msys2

我查看过的帖子: How to Install Python Development Tools on MSYS2

我正在尝试在msys2中运行pyinstaller,但出现以下错误:

OSError: Python library not found: 
    python38.dll, libpython3.8.dll, libpython38.dll, libpython3.8m.dll, libpython38m.dll
This would mean your Python installation doesn't come with proper library files.
This usually happens by missing development package, or unsuitable build parameters of Python installation.

* On Debian/Ubuntu, you would need to install Python development packages
  * apt-get install python3-dev
  * apt-get install python-dev
* If you're building Python by yourself, please rebuild your Python with `--enable-shared` (or, `--enable-framework` on Darwin)

这是我尝试使用pacman在MSYS2中安装的内容:

  • mingw-w64-x86_64-python
  • libgpgme-python
  • mingw-w64-i686-python3
  • 基本开发

不幸的是,我每次都会遇到相同的错误。我还尝试过将路径变量设置到我可能想到的每个位置,这些位置可能都有这些库,甚至我知道的某个地方都有libpython3.8.dll,但这无济于事。

谢谢!

1 个答案:

答案 0 :(得分:0)

看起来像
pip install python-dev-tools
是我一直在寻找的东西。