mac 把python文件變成exe. pip install pyinstaller pyinstaller --onefile -w 'filename.py' 最后生成兩個文件,dist文件里面的是exe.