程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
您现在的位置: 程式師世界 >> 編程語言 >  >> 更多編程語言 >> Python

Convert Python to exe

編輯:Python

1、pyhton edition :2.7.9( Other versions are not clear )

2、 To python Download from the official website of Bao ,future,prfile,pywin32,pyinstaller These four bags , Just search the package you want

3、 Enter into future Execute... In folder :python setup.py install Installation

4、prfile The download is auto_profiler-1.4-py2.py3-none-any.whl In the form of ,pip install xxx

5、pywin32 Download the corresponding version , The installation method is the same as that in step 3

6、 The most annoying installation pyinstaller, Use it directly pip install pyinstaller Is the lack of various environments , Finally, I can't download it directly zip Package installation , But it's downloaded 4.0 The package cannot be installed , Finally, I found a 3.5 My bag :pyinstaller · PyPI, download , decompression , Then go to the root directory and execute :python setup.py install, In the end, it really succeeded , It should be a problem with the version after a long time , Are not compatible

And then we were in pyhon/Script/ Execute under directory pyinstaller You will see :

The installation is successful , Then we can just use it x.py turn x.exe 了

We execute :pyinstaller -F x.py y.py z.py

This time we will be python/Script/dist/  In the middle of x.exe Executable program , Specific parameters can be used by yourself google

I put the dependent libraries that need to be installed in the following address , The official website is slow to download :py turn exe Rely on the python library _python pack exe With third-party library - Other Internet resources -CSDN download


  1. 上一篇文章:
  2. 下一篇文章:
Copyright © 程式師世界 All Rights Reserved