【发布时间】: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