How Python3.4. py files are packaged as. EXE files

Source: Internet
Author: User

first, Installation Pywin32

1 , download Pywin32-218.win-amd64-py3.4.exe (downloaded based on the number of bits of the operating System)

2 , run the installation

3 , if the installation prompts the following error:

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/8B/C8/wKioL1hY79ygsYTRAABv8fWodzE744.png-wh_500x0-wm_3 -wmp_4-s_2946874806.png "width=" 244 "height=" "alt=" Computer generated alternative text: y belly. U. Recall 28 T 22 swallow. Seven FRIENDS. Swallow Four Points by Y 27. Mouth Swallow Mouth J. A few ya card u "day mouth v gan Swallow cannotin spit All month bu ~ the Ming mortar ding, side mouth mouth builtsatoct2715:44:332012withdistutils 34.0a0" style= "background:url ("/e/u261/ Lang/zh-cn/images/localimage.png ") no-repeat center;border:1px solid #ddd;" title= "1.png"/>

Open the Registry "regedit"

1. Locate the registry from "hkey_local_machine\software\wow6432node\python" and export

2. Edit its contents and replace all "hkey_local_machine\software\wow6432node" with "hkey_current_user\software" to save the reg file

3. Double click to run, you can!

4 , after modifying the registry, you can install it properly.

second, Installation Pyinstaller

1 , download Pyinstaller-3.2.zip , and unzip to any directory;

2 , in CMD under Run Pip.exe installpyinstaller

e:\baiduyundownload\pyinstaller-3.2>d:\python\scripts\pip.exeinstall pyinstaller

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/8B/CB/wKiom1hY8AGxlUf4AABv8cCwZmc052.png-wh_500x0-wm_3 -wmp_4-s_3432620802.png "width=" 576 "height=" 254 "alt=" Computer generated alternative text: Sigh: Jutting aidu like undo Nload Shou Xi Installer 13. 2>d:\p XI T BU on\scripts\pip. EXEINSTALLP XI installe) o "NLOADING/UNPACKINGP installer Runningsetup. P XI <path:c: advised sers Platinum Dhihi Platinum Ppdata field Ocal\teop\pip one for uild "dninist Shanghai ATO protection, Spear XI 1nstalle protection of the ETUP. P XI >egg_infofo Protection PACKAGEP XI Installe Protection nopreuiousl xi yi includeddirectoriesfoundoatc bu ing ' bootloader field uild ' Nopreuiousl Xi Yi includeddirectoriesfoundoatching ' bootloader\. "af price, nopreuiou,1 Xi Yi includeddirectorie endure foundoatching ' bootloader af3 a praise," arning:nopre,iousl, A includedfilesfoundnatching ' Bootloader\. Lock one "AF price, nopreuiousl yubari includeddirectoriesfoundoatching ' Doc Ource ' NOPREUIOUSL Xi an includeddirectoriesfoundoatching ' old ' Nopreuiousl xi a includeddirectoriesfoundoatching ' scripts ' NOPREUIOUSL XI a includeddirectoriesfoundoatching ' tests cripts male a guard Ning:nopreuiousl Xi Yi includedfilesfoundnatching '. sign, "arning:nopreuiousl Xi Yi IncludedfilesfoundnatchiNg ' And. Xi nl ' "style=" background:url ("/e/u261/lang/zh-cn/images/localimage.png") no-repeat center;border:1px solid #ddd; " Title= "1.png"/>

3 , input after installation is complete P Yinstaller to see if the installation was successful

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/8B/CB/wKiom1hY8CexAiCgAACb_hKYlx0822.png-wh_500x0-wm_3 -wmp_4-s_1194018462.png "width=" 576 "height=" 365 "alt=" computer generated alternative text: ... Lu Phosphorus Cup Xiang Jean 1In each stone diling1u stone URL b e-exescripttod:\p xi thon sing cripts Exe. NANIFESTSC protection ipttod: from P XI thon\scripts uccessfull XI INSTALLEDP XI Installerpefilep XI pi in32future leaningup ... : From Baidu likes undo "nload from P XI Installer 13. >p,installer isage:p,installer.p, [one h][one u][one "jl=fjl one specpathdir][one n [one hidden one inporthoduleh from he] [one by one additional hooks one dirh00l (sp from th] [one runtine one Hookruhtihe one h00l (S] [one exclude one Noduleexcludes][one ke Xi re gan] h from He][a pdir] [a D][one s] Factory Saving a Bey, "a Mao one __ b/[a i<file." Icoorfile. Exe,idorfile. icns>] Factory z--one,: One f winter,:P, LE, Bu. <pl ' E.? :。 l&gt, bu? : esoorce, sha [one UDC one ddrlin][one UAC one uidccess] factory Yin Bu one "in a p" iuate a a,serlblies "[ding a trace in the Aulympic 0 P aulympic E arrogance xi" one "edi" ect "/' GFCI OSX a bundle of one winter Dentifie "buhdle two ipe noisy tifier '/[a distpathdir][for orkpathu0rl (p0th][one xi] [a upx a dirupx a dir][a a][a clean] [11,091 leuellfuel] [a upxupx] scriptnane[scriptnane ... ] P XI Installer. P Xi: Error:thefollo Beg IngargunentsarerEquired:scriptnane E:\Baidu like undo nload, Installer 13. 2>-"style=" background:url ("/e/u261/lang/zh-cn/images/localimage.png") no-repeat center;border:1px solid #ddd; " Title= "1.png"/>

4 , in D:\python\Scripts can also be seen in the installation directory P Yinstaller . EXE

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/8B/C8/wKioL1hY8EXSfa4YAAEkhJAdoGA601.png-wh_500x0-wm_3 -wmp_4-s_1679584296.png "width=" 571 "height=" 384 "alt=" computer generates alternative text: edit (E) view (V) include to Library Armor tool field share armor Help (H) burn new folder user Pyinstaller a Script py i a set--version.exe mouth py set--version.exe manifest hu pyi one, et--ver,ion one script.py household pywin32 a ostinstall.py P State In32 a estall.py offer carbon Ying) p four see get bored to the chip turn the Ugly Thunder download Changle machine Local Disk (C:), o Group ware (D:) Quasi-ork (E:) Bu ers (F:) -pycache--xi Easv--in,tall.exe Less E. Sv--install a 3.4.exe nursery futurize EXE mountain futurize exe.manifest futurize a script.py nursery pa squid eurize exe eyes pasteurize.exe.manife , T Dee pasteurize a SCRI sleep. Py less pip exe less PIP3 4 exe sand plp3 exe pyi one archive--viewer exe mouth pyi a archive one iewer exe manifest less pyi a archive-v;ewer one, Cript Py Nursery Pyi a bindepend exe mouth pyi a bindepend exe manifest sub py; b;ndepend one script py Nursery pyi 9rab a ersion exe port pyi one 9rab one ER , Ion.exe manife, t soup pyi 9rab a ersion one script.py nursery py bu makespec exe mouth pyi a make,pec exe.manifest pt.py Port pyinstaller.exe.manife,t "style=" Background:url ("/e/u261/lang/zh-cn/imAges/localimage.png ") no-repeat center;border:1px solid #ddd;" title= "1.png"/>

three, Packaging EXE file

1 , will be packaged . PY files are placed in P yInstaller-3.2 directory under

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/8B/C8/ Wkiol1hy8f6d86fkaaekhnsqcdc087.png-wh_500x0-wm_3-wmp_4-s_3307474500.png "width=" 554 "height=" 384 "alt=" computer generated alternative text : *work (E:) *baiduyundownload*! Pylnstaller 3.2) View concave included in the library, tools ① shared, help Tan) hai "record new file cry 9ithub a Pycache 123 pan, bootloader for Doc Wei Pyln. Iler month Pylnstaller.egg one info testS 123.py (C:) (D:)::). Sound archive--viewer.py bindepend py ~cop Bamboo NG.txt. Household grab a ersion.py household make,pec py mouth manifest in mouth pkg one info diao pyinstaller py cent Pyinstaller a GUI py Port Readme " St set-.ve "5ion py mouth, etup. Within User Setup py "style=" background:url ("/e/u261/lang/zh-cn/images/localimage.png") no-repeat center;border:1px Solid #ddd ; "title=" 1.png "/>

2 , run D:\python\python pyinstaller.py-f123.py (note python the Directory)

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/8B/CB/wKiom1hY8HTxmOKAAAEkhCC0j2g178.png-wh_500x0-wm_3 -wmp_4-s_4097765082.png "width=" 576 "height=" 239 "alt=" Computer generated alternative text: array: edict • i,. ,:d. Two Ioad inch, I. ... 1113.2) D:,, th.,, Th. p,,. 5.t.::,::;p,. Two 123 p, array 62IH aulympic o, aulympic, I ", talle" ' 3 · " ..., one--1111111 ~ a dash "' n four, some thon ' 3 4 a 1___ array" sub in aulympic o ' platf "aulympic" ' _ "indo",? A 6:1? 6 Noisy 11 SPI BU 6 giant ih aulympic o, "arrogance otee ' out aidu,undo" N10AD inch, I ", talle" 13 · Z with 23 23 · ' Pec. An array of interactions? In Aulympic 0, some pxi, "ot_a aulympic ' 11 color b work E. A while?" Aulympic ih arrogance O,extegdingp,thghprth "ithpaths ... [' to ' \ Aidu,undo ' nload\ industry,, ', talle ' 13 · "', a ... Two e ' bar Aidu,undo clock nload\ inch, In.talle 13 · " \ spit 23 "a burst of 21IH arrogance o, some hecking" nal,,i,_ a bu 221HEo ' Building "" al,sisbe "ause" ut day one R "al,515 t" ci, "" "" xi,te "t-array 22 '" aulympic 0 " Nitializing "oduledepe" de "c,9 aph ... Bu 2 some ih aulympic o ' initializin "" oduleg "aphho" ks ... Giant "? Ihfg ' "dan al," ingba,e one lib "a", • " IP LV "" 1IH aulympic 0 ' proces.ingpre a Find noisy gdulepathho "kdistuti industrial Cersei 3,ihfo:runningrnal XI 515out Day a rnal XI 515. TOC "style=" background:url ("/e/u261/lang/zh-cn/images/localimage.png") no-repeat center;border:1px solid #ddd; " Title= "1.png"/>

3 , the directory will generate a 123 folder

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/8B/C8/wKioL1hY8JvQLp93AAEkhHYGD0s465.png-wh_500x0-wm_3 -wmp_4-s_687239859.png "width=" 576 "height=" 307 "alt=" Computer generated alternative text: tool field sharing, help (H) burn a new folder. GitHub OVCAC 123 Boot!oader Doc Pylnstaller Pylnstaller Egg One info TestS sound 123 py archive-viejwer.py Sound bindepend py Port cop bamboo ng City Sound grab one ersion.py household makespec PY manifest.in pkg info"port one" style= "background:url ("/e/u261/lang/zh-cn/images/localimage.png ") no-repeat center; border:1px solid #ddd; "title=" 1.png "/>

4 , 123 folder under the Dist under the file is 123.exe File. You can run it under Windows.

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/8B/C8/wKioL1hY8LLABpUTAAEkhJOizkY177.png-wh_500x0-wm_3 -wmp_4-s_1761032446.png "width=" 576 "height=" 248 "alt=" Computer generated alternative text: doorway. *baiduyundownload*pyln,taller a 3.2*123*dist help (h), burn the new folder. IL. J Port E ... The mouth of a month}. sheng, B. lesesl mouth of the month JL "style=" background:url ("/e/u261/lang/zh-cn/images/localimage.png") no-repeat center;border:1px Solid #ddd; "title=" 1.png "/>

Iv. on the problem of Flash-back after the program runs out

after the execution of the program is directly exited, can be added at the end of the program input ("press<enter>") , the program ends by pressing ENTER to Exit. The effect is as Follows:

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/8B/CC/wKiom1hY8MqSqAQ4AAEkhKd98tQ090.png-wh_500x0-wm_3 -wmp_4-s_133612024.png "width=" 566 "height=" 224 "alt=" Computer generated alternative text: l:\ dagger aiduyunuownload\ in ' Taller a bow · Z\123\dl squid \125 exe dagger a zheng-ding ' XI ' style= "background:url ("/e/u261/lang/zh-cn/images/localimage.png ") no-repeat center; border:1px solid #ddd; "title=" 1.png "/>


This article is from "love Ping will win" blog, please be sure to keep this source http://netping.blog.51cto.com/5237409/1884361

How Python3.4. py files are packaged as. EXE files

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.