win7系统安装的python3.8,安装pyinstaller后用pyinstaller打包py文件提示如下,望大神们看下是怎么回事?也没有EXE文件

games 2022-05-01 15:05:44

提示内容:

E:\Python38\Scripts\pyinstaller.exe -F -w Python_code.py
553 INFO: PyInstaller: 5.0.1
553 INFO: Python: 3.8.2
555 INFO: Platform: Windows-7-6.1.7601-SP1
557 INFO: wrote D:\Python项目\Python_code\Python_code.spec
574 INFO: UPX is not available.
590 INFO: Extending PYTHONPATH with paths
['D:\\Python项目\\Python_code']
1347 INFO: checking Analysis
1347 INFO: Building Analysis because Analysis-00.toc is non existent
1348 INFO: Initializing module dependency graph...
1355 INFO: Caching module graph hooks...
1408 INFO: Analyzing base_library.zip ...
6723 INFO: Processing pre-find module path hook distutils from 'e:\\python38\\lib\\site-packages\\PyInstaller\\hooks\\pre_find_module_path\\hook-distutils.py'.
6744 INFO: distutils: retargeting to non-venv dir 'e:\\python38\\lib'
12846 INFO: Caching module dependency graph...
13150 INFO: running Analysis Analysis-00.toc
13181 INFO: Adding Microsoft.Windows.Common-Controls to dependent assemblies of final executable
  required by e:\python38\python.exe
13679 INFO: Analyzing D:\Python项目\Python_code\Python_code.py
13681 INFO: Processing module hooks...
13682 INFO: Loading module hook 'hook-difflib.py' from 'e:\\python38\\lib\\site-packages\\PyInstaller\\hooks'...
13746 INFO: Loading module hook 'hook-distutils.py' from 'e:\\python38\\lib\\site-packages\\PyInstaller\\hooks'...
13748 INFO: Loading module hook 'hook-distutils.util.py' from 'e:\\python38\\lib\\site-packages\\PyInstaller\\hooks'...
13753 INFO: Loading module hook 'hook-encodings.py' from 'e:\\python38\\lib\\site-packages\\PyInstaller\\hooks'...
13987 INFO: Loading module hook 'hook-heapq.py' from 'e:\\python38\\lib\\site-packages\\PyInstaller\\hooks'...
13993 INFO: Loading module hook 'hook-lib2to3.py' from 'e:\\python38\\lib\\site-packages\\PyInstaller\\hooks'...
14434 INFO: Loading module hook 'hook-multiprocessing.util.py' from 'e:\\python38\\lib\\site-packages\\PyInstaller\\hooks'...
14493 INFO: Loading module hook 'hook-pickle.py' from 'e:\\python38\\lib\\site-packages\\PyInstaller\\hooks'...
14500 INFO: Loading module hook 'hook-sysconfig.py' from 'e:\\python38\\lib\\site-packages\\PyInstaller\\hooks'...
14514 INFO: Loading module hook 'hook-xml.etree.cElementTree.py' from 'e:\\python38\\lib\\site-packages\\PyInstaller\\hooks'...
14517 INFO: Loading module hook 'hook-xml.py' from 'e:\\python38\\lib\\site-packages\\PyInstaller\\hooks'...
14661 INFO: Loading module hook 'hook-_tkinter.py' from 'e:\\python38\\lib\\site-packages\\PyInstaller\\hooks'...
15109 INFO: checking Tree
15109 INFO: Building Tree because Tree-00.toc is non existent
15109 INFO: Building Tree Tree-00.toc
15238 INFO: checking Tree
15238 INFO: Building Tree because Tree-01.toc is non existent
15238 INFO: Building Tree Tree-01.toc
15486 INFO: checking Tree
15486 INFO: Building Tree because Tree-02.toc is non existent
15486 INFO: Building Tree Tree-02.toc
15511 INFO: Looking for ctypes DLLs
15533 INFO: Analyzing run-time hooks ...
15538 INFO: Including run-time hook 'e:\\python38\\lib\\site-packages\\PyInstaller\\hooks\\rthooks\\pyi_rth_subprocess.py'
15569 INFO: Including run-time hook 'e:\\python38\\lib\\site-packages\\PyInstaller\\hooks\\rthooks\\pyi_rth_pkgutil.py'
15575 INFO: Including run-time hook 'e:\\python38\\lib\\site-packages\\PyInstaller\\hooks\\rthooks\\pyi_rth_multiprocessing.py'
15580 INFO: Including run-time hook 'e:\\python38\\lib\\site-packages\\PyInstaller\\hooks\\rthooks\\pyi_rth_inspect.py'
15591 INFO: Looking for dynamic libraries
17135 INFO: Looking for eggs
17135 INFO: Using Python library e:\python38\python38.dll
17135 INFO: Found binding redirects: 
[]
17140 INFO: Warnings written to D:\Python项目\Python_code\build\Python_code\warn-Python_code.txt
17211 INFO: Graph cross-reference written to D:\Python项目\Python_code\build\Python_code\xref-Python_code.html
17302 INFO: checking PYZ
17302 INFO: Building PYZ because PYZ-00.toc is non existent
17302 INFO: Building PYZ (ZlibArchive) D:\Python项目\Python_code\build\Python_code\PYZ-00.pyz
18048 INFO: Building PYZ (ZlibArchive) D:\Python项目\Python_code\build\Python_code\PYZ-00.pyz completed successfully.
18062 INFO: checking PKG
18063 INFO: Building PKG because PKG-00.toc is non existent
18063 INFO: Building PKG (CArchive) Python_code.pkg
Traceback (most recent call last):
  File "e:\python38\lib\runpy.py", line 193, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "e:\python38\lib\runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "E:\Python38\Scripts\pyinstaller.exe\__main__.py", line 9, in <module>
  File "e:\python38\lib\site-packages\PyInstaller\__main__.py", line 178, in run
    run_build(pyi_config, spec_file, **vars(args))
  File "e:\python38\lib\site-packages\PyInstaller\__main__.py", line 59, in run_build
    PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
  File "e:\python38\lib\site-packages\PyInstaller\building\build_main.py", line 845, in main
    build(specfile, distpath, workpath, clean_build)
  File "e:\python38\lib\site-packages\PyInstaller\building\build_main.py", line 767, in build
    exec(code, spec_namespace)
  File "D:\Python项目\Python_code\Python_code.spec", line 24, in <module>
    exe = EXE(
  File "e:\python38\lib\site-packages\PyInstaller\building\api.py", line 506, in __init__
    self.pkg = PKG(
  File "e:\python38\lib\site-packages\PyInstaller\building\api.py", line 206, in __init__
    self.__postinit__()
  File "e:\python38\lib\site-packages\PyInstaller\building\datastruct.py", line 173, in __postinit__
    self.assemble()
  File "e:\python38\lib\site-packages\PyInstaller\building\api.py", line 269, in assemble
    fnm = checkCache(
  File "e:\python38\lib\site-packages\PyInstaller\building\utils.py", line 308, in checkCache
    shutil.copy(fnm, cachedfile)
  File "e:\python38\lib\shutil.py", line 415, in copy
    copyfile(src, dst, follow_symlinks=follow_symlinks)
  File "e:\python38\lib\shutil.py", line 261, in copyfile
    with open(src, 'rb') as fsrc, open(dst, 'wb') as fdst:
PermissionError: [Errno 13] Permission denied: 'C:\\Users\\Administrator.Win7-2022VLSMTG\\AppData\\Local\\pyinstaller\\bincache00_py38_64bit\\api-ms-win-core-sysinfo-l1-1-0.dll'

进程已结束,退出代码为 1
 

...全文
687 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
games 2022-05-01
  • 打赏
  • 举报
回复

麻烦大神们给看下怎么解决这个问题 ?、

  • 举报
回复
@games 请问一个小问题,为何我在Python官方网站www.python.org 上面显示说有很多版本说不支持Windows XP或者Windows7以前的版本安装?(我看过,似乎只有2.几的是给装的)你是咋装上去的???[好奇]

10,183

社区成员

发帖
与我相关
我的任务
社区描述
人生苦短,我用python
社区管理员
  • Python 学习者
  • 嗨学编程
  • 松鼠爱吃饼干
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

欢迎来到Python学习者们的社区,

 

本社区分享你需要的文章、问题解答、技术互助、学习资源、面试系列等等

 

欢迎你的加入,祝你学有所成~

试试用AI创作助手写篇文章吧