如何在MSYS2上安装python-dev



我看过的帖子:如何在MSYS2 上安装Python开发工具

我试图在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-ython3
  • 基本开发

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

提前感谢!

看起来
pip install python-dev-tools
就是我想要的。

相关内容

  • 没有找到相关文章

最新更新