首页 > 解决方案 > python:由于 bash “参数太多”,使用 py 安装程序将不起作用

问题描述

我创建了一个基本的 python 脚本:

from easygui import *
msgbox("helo")
buttonbox("hello",choices=("hello","goodbye"))
print("all done")

然后我试图通过 pyinstaller 将它变成一个可用的文件。我将以下命令放入我的终端,安装了 pyinstaller 和 easygui。

$ cd C:\Users\User\
> pyinstaller --onefile test1.py

然后我收到以下消息:

bash: cd: too many arguments

有人知道如何解决我的问题吗?

标签: pythonwindowsbashpyinstaller

解决方案


推荐阅读