鱼C论坛

 找回密码
 立即注册
查看: 1472|回复: 3

新手求助pycharm打包exe文件

[复制链接]
发表于 2019-5-5 18:40:29 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能^_^

您需要 登录 才可以下载或查看,没有账号?立即注册

x
最近看视频学python  想打包的时候一只显示这个
C:\Users\胡志伟\Desktop\1.png
我看了一下 pyinstaller我也下载了啊  新手不晓得发生了什么
C:\Users\胡志伟\Desktop\2.png
模块
小甲鱼最新课程 -> https://ilovefishc.com
回复

使用道具 举报

 楼主| 发表于 2019-5-5 18:45:17 | 显示全部楼层
图片好像没整上.....就是显示pyinstaller不是内部命令,也不是可运行的程序或批处理文件。用的pycharm弄得 。
小甲鱼最新课程 -> https://ilovefishc.com
回复 支持 反对

使用道具 举报

发表于 2019-5-5 20:49:56 | 显示全部楼层
兜风去 发表于 2019-5-5 18:45
图片好像没整上.....就是显示pyinstaller不是内部命令,也不是可运行的程序或批处理文件。用的pycharm弄得  ...

首先这个东东和pycharm 是一分钱关系都没有
e:\>pyinstaller  -F e:\ex9.py
78 INFO: PyInstaller: 3.4
78 INFO: Python: 3.7.2
93 INFO: Platform: Windows-7-6.1.7601-SP1
93 INFO: wrote e:\ex9.spec
93 INFO: UPX is not available.
109 INFO: Extending PYTHONPATH with paths
['e:\\', 'e:\\']
109 INFO: checking Analysis
109 INFO: Building Analysis because Analysis-00.toc is non existent
109 INFO: Initializing module dependency graph...
109 INFO: Initializing module graph hooks...
109 INFO: Analyzing base_library.zip ...
5023 INFO: running Analysis Analysis-00.toc
5054 INFO: Adding Microsoft.Windows.Common-Controls to dependent assemblies of final executable
  required by c:\python37\python.exe
6099 INFO: Caching module hooks...
6099 INFO: Analyzing e:\ex9.py
6411 INFO: Processing pre-safe import module hook   urllib3.packages.six.moves
8236 INFO: Processing pre-safe import module hook   six.moves
11278 INFO: Loading module hooks...
11278 INFO: Loading module hook "hook-certifi.py"...
11278 INFO: Loading module hook "hook-cryptography.py"...
11700 INFO: Loading module hook "hook-encodings.py"...
11793 INFO: Loading module hook "hook-pydoc.py"...
11793 INFO: Loading module hook "hook-xml.dom.domreg.py"...
11793 INFO: Loading module hook "hook-xml.py"...
11824 INFO: Looking for ctypes DLLs
11824 INFO: Analyzing run-time hooks ...
11856 INFO: Looking for dynamic libraries
13182 INFO: Looking for eggs
13182 INFO: Using Python library c:\python37\python37.dll
13182 INFO: Found binding redirects:
[]
13197 INFO: Warnings written to e:\build\ex9\warn-ex9.txt
13322 INFO: Graph cross-reference written to e:\build\ex9\xref-ex9.html
13353 INFO: checking PYZ
13353 INFO: Building PYZ because PYZ-00.toc is non existent
13353 INFO: Building PYZ (ZlibArchive) e:\build\ex9\PYZ-00.pyz
14554 INFO: Building PYZ (ZlibArchive) e:\build\ex9\PYZ-00.pyz completed successfully.
14570 INFO: checking PKG
14570 INFO: Building PKG because PKG-00.toc is non existent
14570 INFO: Building PKG (CArchive) PKG-00.pkg
17004 INFO: Building PKG (CArchive) PKG-00.pkg completed successfully.
17004 INFO: Bootloader c:\python37\lib\site-packages\PyInstaller\bootloader\Windows-32bit\run.exe
17004 INFO: checking EXE
17004 INFO: Building EXE because EXE-00.toc is non existent
17019 INFO: Building EXE from EXE-00.toc
17019 INFO: Appending archive to EXE e:\dist\ex9.exe
17019 INFO: Building EXE from EXE-00.toc completed successfully.
小甲鱼最新课程 -> https://ilovefishc.com
回复 支持 反对

使用道具 举报

发表于 2019-5-5 20:57:24 | 显示全部楼层
当然你可以首先查看一下你的pyinstaller 是否安装成功

e:\>pip show pyinstaller
Name: PyInstaller
Version: 3.4
Summary: PyInstaller bundles a Python application and all its dependencies into a single package.
Home-page: http://www.pyinstaller.org
Author: Giovanni Bajo, Hartmut Goebel, David Vierra, David Cortesi, Martin Zibricky
Author-email: pyinstaller@googlegroups.com
License: GPL license with a special exception which allows to use PyInstaller to build and distribute non-free programs (including commercial ones)
Location: c:\python37\lib\site-packages
Requires: setuptools, pefile, macholib, altgraph, pywin32-ctypes
Required-by:
小甲鱼最新课程 -> https://ilovefishc.com
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Archiver|鱼C工作室 ( 粤ICP备18085999号-1 | 粤公网安备 44051102000585号)

GMT+8, 2026-1-15 15:25

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表