參考:https://code.visualstudio.com/docs/python/python-tutorial#_prerequisites
https://www.cnblogs.com/frank1901s/p/9641888.html
一、Python環境搭建
1.安裝擴展
2.下載Python3.7.2
https://www.python.org/
3.安裝,添加PATH
4.重啟VSCode,打開命令選項板(Ctrl + Shift + P)選擇Python 3解釋器,按F5可選擇使用Python編譯
5.helloworld
打開新建文件夾HELLO,新建文件hello.py,運行
二、Python應用發布
1.使用pip安裝pyinstaller
2.將pyinstaller.exe所在路徑添加到環境變量
3.命令行切換到目標Python文件目錄,鍵入pyinstaller -F 文件名.py
There you go