難看的調試輸出
#launch.json
{
"version": "0.2.0",
"configurations": [
{
"name": "Python: 當前文件",
"type": "python",
"request": "launch",
"program": "${file}",
"stopOnEntry": false,
"console": "none" //加上這一行
}
],
}
設置鏡像
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
https://mirror.tuna.tsinghua.edu.cn/help/pypi/
可執行EXE
pip install pyinstaller
build_exe .\main.py
https://pypi.org/project/py2exe/
python3.8 + pyinstaller3.5報錯
解決方案
https://github.com/pyinstaller/pyinstaller/issues/4265#issuecomment-546221741