python的程序打包,生成exe,简单的pyinstaller.exe的安装使用

1.使用pip安装pyinstaller,(一次安装)

pip install pyinstaller

 

2.打包

pyinstaller -F myfile.py

 

我的测试:

   我的程序目录

      pythons\

             code1\

                       myfile.py

              pythonbin\

                      scripts\

                              pip.exe

                              pyinstaller.exe

                      python.exe

在cmd,下,

     命令   pythons\code1>..\pythonbin\scripts\pyinstaller -F myfile.py

生成:4个,

    __pycache__/*

    dist/myfile.exe                  //这个是可执行的,

    build/*

    myfile.spec

 

。。

    

posted @ 2019-02-15 09:45  以函  阅读(166)  评论(0编辑  收藏  举报