py打包成exe 需要py3.10
pip install pyinstaller
可能有提示需要升级pip
C:\Users\Administrator\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\python.exe -m pip install --upgrade pip
加环境变量
C:\Users\Administrator\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\Scripts
检查
pyinstaller --version
打包
pyinstaller -F test.py