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

   日期:2024-01-17     浏览:49    评论:0    

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

 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:

 

 
打赏
 本文转载自:网络 
所有权利归属于原作者,如文章来源标示错误或侵犯了您的权利请联系微信13520258486
更多>最近资讯中心
更多>最新资讯中心
0相关评论

推荐图文
推荐资讯中心
点击排行
最新信息
新手指南
采购商服务
供应商服务
交易安全
关注我们
手机网站:
新浪微博:
微信关注:

13520258486

周一至周五 9:00-18:00
(其他时间联系在线客服)

24小时在线客服