【问题标题】:How to install python-dev on MSYS2?如何在 MSYS2 上安装 python-dev?
【发布时间】:2020-11-07 11:02:09
【问题描述】:

我看过的帖子: 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,但这没有帮助。

提前致谢!

【问题讨论】:

    标签: python pyinstaller msys2


    【解决方案1】:

    看起来像
    pip install python-dev-tools
    就是我要找的。​​p>

    【讨论】:

    • 这对我没有任何作用。我仍然得到相同的 OSError: Python library not found: python38.dll, libpython38.dll, libpython3.8.dll, libpython38m.dll, libpython3.8m.dll 尝试运行 pyinstaller 时
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-11-19
    • 2021-07-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-06-30
    相关资源
    最近更新 更多