0
点赞
收藏
分享

微信扫一扫

python2.x to exe transporter: py2exe Test report

年迈的代码机器 2022-03-11 阅读 87
python

1.py2

pip install py2exe

from distutils.core import setup  
import py2exe
setup(windows=[{"script": "123.py"}])

2.py3

pip install pyinstaller

win+r

cmd+Enter

cd C:/python/scripts

pyinstaller.exe -F (the .py you want to transport)/filename.py

This report is only used to record my experience.

  ​
  1. py2
  
  pip安装py2exe
  

from distutils.core import setup  
import py2exe
setup(windows=[{"script": "123.py"}])


  
  2. py3
  
  pip安装pyinstaller
  
  win + r
  
  cmd + Enter
  
  cd C: / python /scripts
  
  pyinstaller。exe - f (你想转换的py)/ filename.py
  
  这个报告仅仅是用来记录我的经验。
  
  ​

举报

相关推荐

0 条评论