python - Python 转换成 .exe
问题描述
我想将我的 python 文件转换为.exe
使用pyinstaller
. 我已经使用 pyinstaller 安装了pip install pyinstaller
,但是当我尝试使用时,pyinstaller
我得到:
C:\Users\Varnith\Desktop\program>pyinstaller --onefile main.py
'pyinstaller' is not recognized as an internal or external command,
operable program or batch file.
解决方案
问题是 pyinstaller 尚未添加到路径中。确保正确安装它。如果在 Windows 上,请尝试:
pip install pyinstaller
或者
py -m pip install pyinstaller
否则,pip3
&python3
推荐阅读
- gradle - 我如何使用 cmd 或 gitbash 对 gradle 项目进行简单刷新
- grpc - 带有版本字段的 gRPC 消息请求版本控制
- sql - 那是多对多的sql关系吗?
- python-3.x - 查找所有 1 的最大子矩阵 - 缺少参数错误
- javascript - 我的变量更改了它设置为的变量的值
- python - 循环开始月份和开始年份到结束月份和年份python
- c# - 将 Unity C# 代码与“普通”C# 代码分离
- mysql - Mariadb 服务器不断崩溃 [错误 2013]
- c++ - 如何使用返回布尔值的函数?
- vue.js - 如何使用 Sinon.js (vue) 存根/模拟返回值以测试我的方法