pyinstaller安装没有版本号

使用pyinstaller/auto-py-to-exe将py文件打包出现“Failed to execute script pyi_rth_pkgres”问题

你好,我按照链接下载后,安装pyinstaller提示没有版本号,请问这是什么问题,怎样解决呢?非常感谢
AttributeError: module 'PyInstaller' has no attribute 'version'

方案来自 梦想橡皮擦 狂飙组基于 GPT 编写的 “程秘”


这个问题可能是由于没有正确安装 PyInstaller 导致的。可以尝试以下步骤解决这个问题:

  1. 确保已经正确安装 PyInstaller,可以通过在命令行中输入 pip show pyinstaller 来检查 PyInstaller 是否已经安装。
  2. 如果已经安装 PyInstaller,可以尝试重新安装,可以在命令行中输入 pip uninstall pyinstaller 卸载 PyInstaller,然后再重新安装,可以输入 pip install pyinstaller 来安装最新版本的 PyInstaller。
  3. 如果重新安装 PyInstaller 仍然无法解决问题,可以尝试更新 setuptools,可以输入 pip install -U setuptools 来更新 setuptools。