猫猫虫(——) 2018-04-18 11:21 采纳率: 0%
浏览 2374
已结题

pyinstaller 打包python文件为exe时出错

cmd上运行后如下:
C:\WINDOWS\system32>pyinstaller -F C:\Users\lenovo\Desktop\文档\测试\btboay.py
128 INFO: PyInstaller: 3.3.1
128 INFO: Python: 3.6.5
129 INFO: Platform: Windows-10-10.0.16299-SP0
131 INFO: wrote C:\WINDOWS\system32\btboay.spec
141 INFO: UPX is not available.
142 INFO: Extending PYTHONPATH with paths
['C:\Users\lenovo\Desktop\文档\测试', 'C:\WINDOWS\system32']
143 INFO: checking Analysis
270 INFO: Building because inputs changed
271 INFO: Initializing module dependency graph...
294 INFO: Initializing module graph hooks...
299 INFO: Analyzing base_library.zip ...
7202 INFO: running Analysis out00-Analysis.toc
7208 INFO: Adding Microsoft.Windows.Common-Controls to dependent assemblies of final executable
required by d:\python\python.exe
7701 WARNING: lib not found: api-ms-win-crt-process-l1-1-0.dll dependency of d:\python\python36.dll
7782 WARNING: lib not found: api-ms-win-crt-conio-l1-1-0.dll dependency of d:\python\python36.dll
8887 INFO: Caching module hooks...
8900 INFO: Analyzing C:\Users\lenovo\Desktop\文档\测试\btboay.py
9554 INFO: Loading module hooks...
9555 INFO: Loading module hook "hook-encodings.py"...
10430 INFO: Loading module hook "hook-pydoc.py"...
10432 INFO: Loading module hook "hook-xml.py"...
10926 INFO: Loading module hook "hook-_tkinter.py"...
11707 INFO: checking Tree
11981 INFO: checking Tree
12067 INFO: Looking for ctypes DLLs
12067 INFO: Analyzing run-time hooks ...
12072 INFO: Including run-time hook 'pyi_rth__tkinter.py'
12094 INFO: Looking for dynamic libraries
12195 WARNING: lib not found: api-ms-win-crt-conio-l1-1-0.dll dependency of d:\python\DLLs_ssl.pyd
12327 WARNING: lib not found: api-ms-win-crt-conio-l1-1-0.dll dependency of d:\python\DLLs_hashlib.pyd
12828 INFO: Looking for eggs
12828 INFO: Using Python library d:\python\python36.dll
12829 INFO: Found binding redirects:
[]
12849 INFO: Warnings written to C:\WINDOWS\system32\build\btboay\warnbtboay.txt
12952 INFO: Graph cross-reference written to C:\WINDOWS\system32\build\btboay\xref-btboay.html
13010 INFO: checking PYZ
13036 INFO: Building because toc changed
13036 INFO: Building PYZ (ZlibArchive) C:\WINDOWS\system32\build\btboay\out00-PYZ.pyz
14218 INFO: Building PYZ (ZlibArchive) C:\WINDOWS\system32\build\btboay\out00-PYZ.pyz completed successfully.
14232 INFO: checking PKG
14291 INFO: Building because toc changed
14291 INFO: Building PKG (CArchive) out00-PKG.pkg
20903 INFO: Building PKG (CArchive) out00-PKG.pkg completed successfully.
20975 INFO: Bootloader d:\python\lib\site-packages\PyInstaller\bootloader\Windows-32bit\run.exe
20975 INFO: checking EXE
21034 INFO: Building because toc changed
21034 INFO: Building EXE from out00-EXE.toc
21219 INFO: Appending archive to EXE C:\WINDOWS\system32\dist\btboay.exe
21236 INFO: Building EXE from out00-EXE.toc completed successfully.

但我要打包的文件目录下只生成了一个__pycache__文件夹,没有打包的EXE文件

  • 写回答

2条回答 默认 最新

  • threenewbee 2018-04-18 11:37
    关注

    要正确安装python 3.6,visual c++ 2012运行库和pyinstaller,缺一不可。
    检查下路径和权限。

    评论

报告相同问题?

悬赏问题

  • ¥15 如何让企业微信机器人实现消息汇总整合
  • ¥50 关于#ui#的问题:做yolov8的ui界面出现的问题
  • ¥15 如何用Python爬取各高校教师公开的教育和工作经历
  • ¥15 TLE9879QXA40 电机驱动
  • ¥20 对于工程问题的非线性数学模型进行线性化
  • ¥15 Mirare PLUS 进行密钥认证?(详解)
  • ¥15 物体双站RCS和其组成阵列后的双站RCS关系验证
  • ¥20 想用ollama做一个自己的AI数据库
  • ¥15 关于qualoth编辑及缝合服装领子的问题解决方案探寻
  • ¥15 请问怎么才能复现这样的图呀