在 Windows 上使用 PyInstaller 丢失 dll 文件 [英] Missing dll files using PyInstaller on Windows

查看:48
本文介绍了在 Windows 上使用 PyInstaller 丢失 dll 文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我跑后:

pyupdater build -F --app-version 0.0.1 app.py

我收到一个错误:

[INFO] PyUpdater 3.1.1
[INFO] Compiling...
Python library not found: libpython3.7.dll, libpython37m.dll, libpython3.7m.dll, python37.dll, libpython37.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)

环境:

  • Windows 10
  • Python 3.7.9
  • PyUpdater 3.1.1
  • Pyinstaller 4.1

推荐答案

我已经删除了所有 Python 版本,并从官方站点安装了一个,现在可以使用了.Pyinstaller 似乎无法与从 Microsoft Store 安装的 Python 一起正常工作.

I've removed all Python versions and installed the one from the official site and it's working now. It seems like Pyinstaller doesn't work correctly with Python installed from Microsoft Store.

这篇关于在 Windows 上使用 PyInstaller 丢失 dll 文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆