pyinstaller==3.6版本打包出程序执行提示 failed to execute pyi_rth_pkgres 解决办法

遇到这个问题按下面方法顺利解决我的问题,先卸载然后重新安装

 1 PS C:\windows\system32> pip uninstall pyinstaller
 2 Found existing installation: PyInstaller 3.6
 3 Uninstalling PyInstaller-3.6:
 4   Would remove:
 5     c:\program files\python37\lib\site-packages\pyinstaller-3.6.dist-info\*
 6     c:\program files\python37\lib\site-packages\pyinstaller\*
 7     c:\program files\python37\scripts\pyi-archive_viewer.exe
 8     c:\program files\python37\scripts\pyi-bindepend.exe
 9     c:\program files\python37\scripts\pyi-grab_version.exe
10     c:\program files\python37\scripts\pyi-makespec.exe
11     c:\program files\python37\scripts\pyi-set_version.exe
12     c:\program files\python37\scripts\pyinstaller.exe
13 Proceed (y/n)? y
14   Successfully uninstalled PyInstaller-3.6
15 PS C:\windows\system32> pip install https://github.com/pyinstaller/pyinstaller/archive/develop.zip
16 Collecting https://github.com/pyinstaller/pyinstaller/archive/develop.zip
17   Downloading https://github.com/pyinstaller/pyinstaller/archive/develop.zip
18      \ 4.2 MB 30 kB/s
19   Installing build dependencies ... done
20   Getting requirements to build wheel ... done
21     Preparing wheel metadata ... done
22 Requirement already satisfied: setuptools in c:\program files\python37\lib\site-packages (from pyinstaller==4.0.dev0) (47.1.1)
23 Requirement already satisfied: pywin32-ctypes>=0.2.0; sys_platform == "win32" in c:\program files\python37\lib\site-packages (from pyinstaller==4.0.dev0) (0.2.0)
24 Requirement already satisfied: pefile>=2017.8.1; sys_platform == "win32" in c:\program files\python37\lib\site-packages (from pyinstaller==4.0.dev0) (2019.4.18)
25 Requirement already satisfied: altgraph in c:\program files\python37\lib\site-packages (from pyinstaller==4.0.dev0) (0.17)
26 Requirement already satisfied: future in c:\program files\python37\lib\site-packages (from pefile>=2017.8.1; sys_platform == "win32"->pyinstaller==4.0.dev0) (0.18.2)
27 Building wheels for collected packages: pyinstaller
28   Building wheel for pyinstaller (PEP 517) ... done
29   Created wheel for pyinstaller: filename=pyinstaller-4.0.dev0-py3-none-any.whl size=2933433 sha256=e84486ef70819168196c7498197b8533fb8c62421d23c73dfc2589ebeef7e578
30   Stored in directory: C:\Users\xx\AppData\Local\Temp\pip-ephem-wheel-cache-mdkbthuh\wheels\8a\8d\79\5d8288416c36a101b9acc7bf6b88e3b61357156c6a1efa63df
31 Successfully built pyinstaller
32 Installing collected packages: pyinstaller
33 Successfully installed pyinstaller-4.0.dev0
34 PS C:\windows\system32>
35 PS C:\windows\system32>
36 PS C:\windows\system32> pip show pyinstaller
37 Name: pyinstaller
38 Version: 4.0.dev0
39 Summary: PyInstaller bundles a Python application and all its dependencies into a single package.
40 Home-page: http://www.pyinstaller.org/
41 Author: Hartmut Goebel, Giovanni Bajo, David Vierra, David Cortesi, Martin Zibricky
42 Author-email: None
43 License: GPLv2-or-later with a special exception which allows to use PyInstaller to build and distribute non-free programs (including commercial ones)
44 Location: c:\program files\python37\lib\site-packages
45 Requires: altgraph, pefile, setuptools, pywin32-ctypes
46 Required-by:

 

posted @ 2020-05-30 15:27  iSZ  阅读(1857)  评论(0编辑  收藏  举报