pyinstaller --onefile -i .\file\1.ico .\xx.py .\xx.py .\xx.py .\xx.py
然后把现在用到的虚拟环境加入到windows系统path (环境变量)中,
pycharm->seting->project: 你的名字->python interpreter中就是正在使用的虚拟环境,有路径,
打开文件夹(路径就是你刚看到的),在文件夹复制路径加入环境变量,
此电脑->属性->高级系统设置->环境变量->系统变量 中的path中
pyinstaller --onefile -i .\file\1.ico .\xx.py .\xx.py .\xx.py .\xx.py
然后把现在用到的虚拟环境加入到windows系统path (环境变量)中,
pycharm->seting->project: 你的名字->python interpreter中就是正在使用的虚拟环境,有路径,
打开文件夹(路径就是你刚看到的),在文件夹复制路径加入环境变量,
此电脑->属性->高级系统设置->环境变量->系统变量 中的path中