当前位置:   article > 正文

windows系统 简单地生成python的小巧的独立运行程序_最小 python可执行程序

最小 python可执行程序

在Windows系统,可以生成python的独立运行程序,使用python的pyAcvtiveEXE组件(<15M)可以生成独立运行程序,以便C,python,C#,C++,javascript,Go,Java,vbs...等语言可以调用。

支持python2.7  python3.4  (python3.7未发布)

方法1 使用其它语言调用pyAcvtiveEXE组件

方法2 修改/py/py.cfg配置文件,能实现简单功能,没有输入界面

 

方法1调用组件

:: 在新的电脑上windows系统上需要初始化pyActiveEXE组件 :: pyActiveEXE.exe /r
:: 或者点击运行 pyActiveEXE.exe

:: 运行test文件夹下面的demo

:: 卸载pyActiveEXE组件 pyActiveEXE.exe /u

方法2修改/py/py.cfg

修改/py/py.cfg配置文件,run=1,点击运行pyActiveEXE.exe

联系

Github: https://github.com/chygfm/activeExe email:cyg6(at)qq.com  

Welcome to pyAcvtiveEXE python 3.4 win32 for Windows

You have 2 ways to generate a standalone executable python program .

Method 1 call pyAcvtiveEXE component from other languages Method 2 config the /py/py.cfg, Limited functionality,No input interface,change the the exefile's ico by QIcon Changer or Resource Hacker

Use python's pyAcvtiveEXE component (<15M) to generate a standalone program for C,python,C#,C++,javascript,Go,Java,vbs...languages' calls. pyAcvtiveEXE component is too small,only about 15M,too easy,can call almost python program

###Method 1

:: install pyActiveEXE Component one time for initialization in new machine on windows system. :: pyActiveEXE.exe /r
:: or click pyActiveEXE.exe

:: run demos under text folder Markdown

  1. python 3.4 /2.7
  2. # c sharp#
  3. using pyActive;
  4. pyActive.py3 py = new pyActive.py3();
  5. MessageBox.Show(py.version());
  6. py.quit();
  7. # vbs#
  8. 1. run pyActiveEXE.exe /r or click pyActiveEXE.exe to install
  9. 2. in vbs demo code
  10. Dim py,num
  11. Set py= CreateObject("pyActive.py3")
  12. msgbox (py.eVal(3+6))
  13. py.quit()

:: Uninstall pyActiveEXE Component pyActiveEXE.exe /u

###Method 2

config /py/py.cfg ,change run=1,click pyActiveEXE.exe,OK!

Support or Contact

Github: https://github.com/chygfm/activeExe email:cyg6(at)qq.com  

================================================================================================

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/weixin_40725706/article/detail/74744
推荐阅读
相关标签
  

闽ICP备14008679号