安装 pyinstaller 报错 以及本次安装成功方法

2023-11-22 01:50

本文主要是介绍安装 pyinstaller 报错 以及本次安装成功方法,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

安装 pyinstaller 报错 以及本次安装成功方法

按照网上描述安装pyinstaller:1.安装pypiwin32,2.安装pyinstaller(出错)
安装pypiwin32
pip install pypiwin32  # pypiwin32安装成功

C:\package>pip install pypiwin32
Collecting pypiwin32
Downloading pypiwin32-223-py3-none-any.whl (1.7 kB)
Collecting pywin32>=223
Downloading pywin32-227-cp38-cp38-win_amd64.whl (9.1 MB)
|████████████████████████████████| 9.1 MB 226 kB/s
Installing collected packages: pywin32, pypiwin32
Successfully installed pypiwin32-223 pywin32-227

安装pyinstaller(出错)
pip install pyinstaller  # 出错 具体在下面

C:\package>pip install pyinstaller
Collecting pyinstaller
Using cached PyInstaller-3.6.tar.gz (3.5 MB)
Installing build dependencies … donse
Getting requirements to build wheel … done
Preparing wheel metadata … error
ERROR: Command errored out with exit status 1:
command: ‘c:\users\xxxx\appdata\local\programs\python\python38\python.exe’ ‘c:\users\xxxx\appdata\local\programs\python\python38\lib\site-packages\pip_vendor\pep517_in_process.py’ prepare_metadata_for_build_wheel ‘J:\系统临~1\Temp\tmpchdxkhlk’
cwd: J:\系统临时文件\Temp\pip-install-9bvff9qt\pyinstaller
Complete output (36 lines):
running dist_info
省略1w字…
error: invalid command ‘bdist_wheel’(这里?)
----------------------------------------
ERROR: Command errored out with exit status 1: ‘c:\users\xxxx\appdata\local\programs\python\python38\python.exe’ ‘c:\users\xxxx\appdata\local\programs\python\python38\lib\site-packages\pip_vendor\pep517_in_process.py’ prepare_metadata_for_build_wheel ‘J:\系统临~1\Temp\tmpchdxkhlk’ Check the logs for full command output.

再次安装:出错*2

C:\package>pip install pyinstaller
Collecting pyinstaller
Using cached PyInstaller-3.6.tar.gz (3.5 MB)
Installing build dependencies … done
Getting requirements to build wheel … done
Preparing wheel metadata … error
ERROR: Command errored out with exit status 1:
下面错误一样省略…

本次解决方法,安装wheel:
pip install wheel

C:\package>pip install wheel
Collecting wheel
Using cached wheel-0.34.2-py2.py3-none-any.whl (26 kB)
Installing collected packages: wheel
Successfully installed wheel-0.34.2

C:\package>pip install pyinstaller
Collecting pyinstaller
Using cached PyInstaller-3.6.tar.gz (3.5 MB)
Installing build dependencies … done
Getting requirements to build wheel … done
Preparing wheel metadata … done
Collecting pefile>=2017.8.1
Downloading pefile-2019.4.18.tar.gz (62 kB)
|████████████████████████████████| 62 kB 129 kB/s
Collecting pywin32-ctypes>=0.2.0
Downloading pywin32_ctypes-0.2.0-py2.py3-none-any.whl (28 kB)
Collecting altgraph
Downloading altgraph-0.17-py2.py3-none-any.whl (21 kB)
Requirement already satisfied: setuptools in c:\users\xxxx\appdata\local\programs\python\python38\lib\site-packages (from pyinstaller) (41.2.0)
Collecting future
Downloading future-0.18.2.tar.gz (829 kB)
|████████████████████████████████| 829 kB 273 kB/s
Building wheels for collected packages: pyinstaller, pefile, future
Building wheel for pyinstaller (PEP 517) … done
Created wheel for pyinstaller: filename=PyInstaller-3.6-py3-none-any.whl size=2926582 sha256=bc49a87eb2aa0ae1b018587394c2290ff22065dcc41aabb01b24fa6ca07ac0fc
Stored in directory: c:\users\xxxx\appdata\local\pip\cache\wheels\57\9a\e0\213da356866201eac897534a77c7af30b48b48c2734e30a25f
Building wheel for pefile (setup.py) … done
Created wheel for pefile: filename=pefile-2019.4.18-py3-none-any.whl size=60827 sha256=84c4b0e9db16aef795277623b759db2c631973e7c6b29453c505cceffc3216f1
Stored in directory: c:\users\xxxx\appdata\local\pip\cache\wheels\42\52\d5\9550bbfb9eeceaf0f19db1cf651cc8ba41d3bcf8b4d20e4279
Building wheel for future (setup.py) … done
Created wheel for future: filename=future-0.18.2-py3-none-any.whl size=491062 sha256=b8718ef044145f465cc91f9747ad73339384e0213499f469061311059b6daf43
Stored in directory: c:\users\xxxx\appdata\local\pip\cache\wheels\8e\70\28\3d6ccd6e315f65f245da085482a2e1c7d14b90b30f239e2cf4
Successfully built pyinstaller pefile future
Installing collected packages: future, pefile, pywin32-ctypes, altgraph, pyinstaller
Successfully installed altgraph-0.17 future-0.18.2 pefile-2019.4.18 pyinstaller-3.6 pywin32-ctypes-0.2.0

最终安装成功

...

这篇关于安装 pyinstaller 报错 以及本次安装成功方法的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/406617

相关文章

PHP轻松处理千万行数据的方法详解

《PHP轻松处理千万行数据的方法详解》说到处理大数据集,PHP通常不是第一个想到的语言,但如果你曾经需要处理数百万行数据而不让服务器崩溃或内存耗尽,你就会知道PHP用对了工具有多强大,下面小编就... 目录问题的本质php 中的数据流处理:为什么必不可少生成器:内存高效的迭代方式流量控制:避免系统过载一次性

python获取指定名字的程序的文件路径的两种方法

《python获取指定名字的程序的文件路径的两种方法》本文主要介绍了python获取指定名字的程序的文件路径的两种方法,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要... 最近在做项目,需要用到给定一个程序名字就可以自动获取到这个程序在Windows系统下的绝对路径,以下

JavaScript中的高级调试方法全攻略指南

《JavaScript中的高级调试方法全攻略指南》什么是高级JavaScript调试技巧,它比console.log有何优势,如何使用断点调试定位问题,通过本文,我们将深入解答这些问题,带您从理论到实... 目录观点与案例结合观点1观点2观点3观点4观点5高级调试技巧详解实战案例断点调试:定位变量错误性能分

Python中 try / except / else / finally 异常处理方法详解

《Python中try/except/else/finally异常处理方法详解》:本文主要介绍Python中try/except/else/finally异常处理方法的相关资料,涵... 目录1. 基本结构2. 各部分的作用tryexceptelsefinally3. 执行流程总结4. 常见用法(1)多个e

JavaScript中比较两个数组是否有相同元素(交集)的三种常用方法

《JavaScript中比较两个数组是否有相同元素(交集)的三种常用方法》:本文主要介绍JavaScript中比较两个数组是否有相同元素(交集)的三种常用方法,每种方法结合实例代码给大家介绍的非常... 目录引言:为什么"相等"判断如此重要?方法1:使用some()+includes()(适合小数组)方法2

RabbitMQ 延时队列插件安装与使用示例详解(基于 Delayed Message Plugin)

《RabbitMQ延时队列插件安装与使用示例详解(基于DelayedMessagePlugin)》本文详解RabbitMQ通过安装rabbitmq_delayed_message_exchan... 目录 一、什么是 RabbitMQ 延时队列? 二、安装前准备✅ RabbitMQ 环境要求 三、安装延时队

504 Gateway Timeout网关超时的根源及完美解决方法

《504GatewayTimeout网关超时的根源及完美解决方法》在日常开发和运维过程中,504GatewayTimeout错误是常见的网络问题之一,尤其是在使用反向代理(如Nginx)或... 目录引言为什么会出现 504 错误?1. 探索 504 Gateway Timeout 错误的根源 1.1 后端

解决升级JDK报错:module java.base does not“opens java.lang.reflect“to unnamed module问题

《解决升级JDK报错:modulejava.basedoesnot“opensjava.lang.reflect“tounnamedmodule问题》SpringBoot启动错误源于Jav... 目录问题描述原因分析解决方案总结问题描述启动sprintboot时报以下错误原因分析编程异js常是由Ja

linux系统上安装JDK8全过程

《linux系统上安装JDK8全过程》文章介绍安装JDK的必要性及Linux下JDK8的安装步骤,包括卸载旧版本、下载解压、配置环境变量等,强调开发需JDK,运行可选JRE,现JDK已集成JRE... 目录为什么要安装jdk?1.查看linux系统是否有自带的jdk:2.下载jdk压缩包2.解压3.配置环境

MySQL 表空却 ibd 文件过大的问题及解决方法

《MySQL表空却ibd文件过大的问题及解决方法》本文给大家介绍MySQL表空却ibd文件过大的问题及解决方法,本文给大家介绍的非常详细,对大家的学习或工作具有一定的参考借鉴价值,需要的朋友参考... 目录一、问题背景:表空却 “吃满” 磁盘的怪事二、问题复现:一步步编程还原异常场景1. 准备测试源表与数据