python转exe 体积_求Python转exe可用详情方法

在尝试使用PyInstaller将Python脚本转换为exe文件时,遇到了错误1920,系统无法访问该文件。问题可能与Windows资源包加载有关。同时,也探讨了如何优化转换后的exe文件体积。寻求解决方案。
摘要由CSDN通过智能技术生成

Microsoft Windows [版本 10.0.18363.657]

(c) 2019 Microsoft Corporation。保留所有权利。

C:\Users\Administrator>C:\Users\Administrator\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\Scripts\pyinstaller.exe -F C:\Users\Administrator\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\Scripts\py.py

124 INFO: PyInstaller: 3.6

125 INFO: Python: 3.7.6

126 INFO: Platform: Windows-10-10.0.18362-SP0

127 INFO: wrote C:\Users\Administrator\py.spec

132 INFO: UPX is not available.

134 INFO: Extending PYTHONPATH with paths

['C:\\Users\\Administrator\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\\LocalCache\\local-packages\\Python37\\Scripts',

135 INFO: checking Analysis

135 INFO: Building Analysis because Analysis-00.toc is non existent

135 INFO: Initializing module dependency graph...

141 INFO: Caching module graph hooks...

149 INFO: Analyzing base_library.zip ...

3555 INFO: Caching module dependency graph...

3722 INFO: running Analysis Analysis-00.toc

Traceback (most recent call last):

File "C:\Users\Administrator\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\win32ctypes\pywin32\pywintypes.py", line 35, in pywin32error

yield

File "C:\Users\Administra

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值