利用pip安装python的工具库pyinstaller pip install pyinstaller 安装成功后 在cmd命令窗口输入: pyinstaller -F C:Userslyhello.py // hello.py打包成exe 注意 F 一定要大写 然后就会在这个路径下的dist文件夹下找到这和同名的hello.exe文件

利用pip安装python的工具库pyinstaller pip install pyinstaller 安装成功后 在cmd命令窗口输入: pyinstaller -F C:Userslyhello.py // hello.py打包成exe 注意 F 一定要大写 然后就会在这个路径下的dist文件夹下找到这和同名的hello.exe文件