打包有多种方法,此处采用pyinstaller。
Windows中打开PowerShell运行
pip install pyinstaller
进行安装。
然后使用cd命令 到要打包的文件所在位置
cd E:\Python_code\wifi_robot
接着使用命令
installer -F wifi_robot.py #-F之后为文件名
打开文件夹就可以看到打包好之后的程序了。
打包有多种方法,此处采用pyinstaller。
Windows中打开PowerShell运行
pip install pyinstaller
进行安装。
然后使用cd命令 到要打包的文件所在位置
cd E:\Python_code\wifi_robot
接着使用命令
installer -F wifi_robot.py #-F之后为文件名
打开文件夹就可以看到打包好之后的程序了。