可以问大家个问题吗?我在用cxfreeze打包打飞机为exe文件时,试了一下那个去除cmd黑色窗口的命令,就是结尾加base-name=123那个。但是反馈是cx_Freeze.freezer.ConfigError: no base named 123
这个base name是怎么回事?因为我打包的对象目录就是C:\123。
希望老师们能够帮一下我!详细的情况见下方:
C:\Users\Xsherlock>C:\Python3\Scripts\cxfreeze "C:\Users\Xsherlock\Desktop\Jason's Plane\Jason's Plane.py" --target-dir C:\123 --base-name=123
Traceback (most recent call last):
File "C:\Python3\Scripts\cxfreeze", line 5, in <module>
main()
File "C:\Python3\lib\site-packages\cx_Freeze\main.py", line 176, in main
silent = options.silent)
File "C:\Python3\lib\site-packages\cx_Freeze\freezer.py", line 150, in __init__
self._VerifyConfiguration()
File "C:\Python3\lib\site-packages\cx_Freeze\freezer.py", line 485, in _VerifyConfiguration
executable._VerifyConfiguration(self)
File "C:\Python3\lib\site-packages\cx_Freeze\freezer.py", line 679, in _VerifyConfiguration
self._GetBaseFileName()
File "C:\Python3\lib\site-packages\cx_Freeze\freezer.py", line 694, in _GetBaseFileName
raise ConfigError("no base named %s", name)
cx_Freeze.freezer.ConfigError: no base named 123