如何在 MSYS2 上安装 python-dev?
How to install python-dev 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
但这没有帮助.
提前致谢!
看起来像
pip install python-dev-tools
正是我要找的。
我看过的帖子:
我正在尝试 运行 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
但这没有帮助.
提前致谢!
看起来像
pip install python-dev-tools
正是我要找的。