标签:code size ext string tab 2014 ble set 文件 table c
需求1:打包成Linux上可执行程序a. 先下载pyinstaller程序,我当前下载的是PyInstaller-2.1的版本 进行如下操作: pythoner@pythoner-virtual-machine:~/PyInstaller-2.1$ sudo python2.7 setup.py install pythoner@pythoner-virtual-machine:~/PyInstaller-2.1$ pwd /home/pythoner/PyInstaller-2.1
pythoner@pythoner-virtual-machine:~/PyInstaller-2.1$ ./utils/makespec.py --onefile ~/05.py wrote /home/pythoner/PyInstaller-2.1/05/05.spec now run pyinstaller.py to build the executable
pythoner@pythoner-virtual-machine:~/PyInstaller-2.1$ ./utils/build.py 05/05.spec 42 INFO: UPX is not available. 83 INFO: Processing hook hook-os 248 INFO: Processing hook hook-time 251 INFO: Processing hook hook-cPickle 347 INFO: Processing hook hook-_sre 475 INFO: Processing hook hook-cStringIO 589 INFO: Processing hook hook-encodings 606 INFO: Processing hook hook-codecs 1086 INFO: Extending PYTHONPATH with /home/pythoner 1086 INFO: checking Analysis 1101 INFO: checking PYZ 1109 INFO: checking PKG 1110 INFO: checking EXE
pythoner@pythoner-virtual-machine:~/PyInstaller-2.1$ stat 05/dist/05 File: ‘05/dist/05’ Size: 4230711 Blocks: 8264 IO Block: 4096 regular file Device: 801h/2049d Inode: 4196956 Links: 1 Access: (0755/-rwxr-xr-x) Uid: ( 1000/pythoner) Gid: ( 1000/pythoner) Access: 2014-04-28 21:45:40.110497178 +0700 Modify: 2014-04-28 21:45:20.806496857 +0700 Change: 2014-04-28 21:45:20.806496857 +0700 Birth: -
如何使用 pyinstaller 对py脚本进行打包?,布布扣,bubuko.com
标签:code size ext string tab 2014 ble set 文件 table c
原文地址:http://www.cnblogs.com/start0cheng/p/3698193.html