Cygwin安装PyInstaller后生成exe一直失败,无奈放弃。安装pycharm,导入Python2.7后才能使用。具体步骤:
-
安装Python2.7.18
1.1 Python2.7 安装教程 https://blog.csdn.net/zzfenglin/article/details/52336440
1.2 需要安装pip,并将pip也添加到环境变量https://blog.csdn.net/guangmingsky/article/details/90599204 -
安装pycharm
https://blog.csdn.net/q6q6q/article/details/109347278 -
Pip安装所需插件,pip常用命令pip list; pip install xxx==3.5, pip uninstall xxx
-
执行PyInstaller -F excel2c51h.py即可