PS E:*_site> cxfreeze --version
cxfreeze 6.10 Copyright (c) 2020-2022 Marcelo Duarte. All rights reserved. Copyright (c) 2007-2020 Anthony Tuininga. All rights reserved. Copyright (c) 2001-2006
Computronix Corporation. All rights reserved.
PS E:*_site> python -V
Python 3.10.0
PS E:*_site>
我在pycharm上运行代码一切正常,
![img](https://img-mid.csdnimg.cn/release/static/image/mid/ask/37119206145614.png "#left",然而我用pyinstaller打包后运行后
在cmd里试图看错误代码也没什么提示头大希望能解决问题,感觉好挫折……
第四个选项导入了什么第三方库,
另外,
或许对Python版本降级可能解决这个问题,比如试下Python3.7 Python3.8
如有问题及时沟通
有依赖库的话,你的打包不要用-F参数,用-D参数,然后你的exe在dist文件夹下面
pyinstaller -D filename.py