Python 打包成应用程序 - V2EX
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
yinuxy
V2EX    Python

Python 打包成应用程序

  •  
  •   yinuxy 2020-04-26 21:58:32 +08:00 3368 次点击
    这是一个创建于 1996 天前的主题,其中的信息可能已经有所发展或是发生改变。

    大佬们好,我想把用 python 写的一个代码打包成 exe 应用程序,python 代码里面用到了相关库和 chromedriver,怎么把他们一起打包呢? 另外鄙人博客( https://blog.yinuxy.com)刚建立不久,欢迎大佬们来踩一踩啊!

    15 条回复    2020-04-27 17:39:51 +08:00
    ysc3839
        1
    ysc3839  
       2020-04-26 22:07:01 +08:00
    PyInstaller?
    jdhao
        2
    jdhao  
       2020-04-26 22:11:35 +08:00 via Android
    pyinstaller,可以参考我之前写的文章: https://jdhao.github.io/2019/10/14/python_script_to_exe/
    lichdkimba
        3
    lichdkimba  
       2020-04-26 22:12:51 +08:00
    带 chromedriver 的可能难搞啊 没试过不多评论
    ClericPy
        4
    ClericPy  
       2020-04-26 22:14:40 +08:00
    chromedriver 把文件目录那套搞明白就没什么了吧... 有什么区别么

    看到后半句...
    yinuxy
        5
    yinuxy  
    OP
       2020-04-26 23:19:27 +08:00 via Android
    @jdhao 好的,我去看看
    yinuxy
        6
    yinuxy  
    OP
       2020-04-26 23:24:25 +08:00 via Android
    @ClericPy 嘿嘿嘿,随便打个小广告,感谢大佬指导,不懂再来问
    wesleyweatherly
        7
    wesleyweatherly  
       2020-04-27 01:31:37 +08:00
    @jdhao 看了你的英文博客 感觉很棒。还有哪里有类似你博客这样的中国人些的英文的编程技术博客,能介绍给我吗?
    wesleyweatherly
        8
    wesleyweatherly  
       2020-04-27 01:33:55 +08:00
    crab
        9
    crab  
       2020-04-27 02:53:48 +08:00
    nuitka
    heyhumor
        10
    heyhumor  
       2020-04-27 09:06:09 +08:00
    chromedriver 打包没意义啊,版本更新了还得换
    deplives
        11
    deplives  
       2020-04-27 09:24:04 +08:00
    大家没发现,前面全是铺垫,后半句才是重点么?
    qW7bo2FbzbC0
        12
    qW7bo2FbzbC0  
       2020-04-27 09:47:51 +08:00
    不太好使,相关需求已经转 Netcore 3.1 和 golang 了
    yinuxy
        13
    yinuxy  
    OP
       2020-04-27 10:23:02 +08:00
    @hjahgdthab750 嘿嘿,前半句才是重点!!!
    jdhao
        14
    jdhao  
       2020-04-27 13:57:11 +08:00 via Android
    @wesleyweatherly 这个我也不清楚,碰运气吧。。
    Citrullus
        15
    Citrullus  
       2020-04-27 17:39:51 +08:00
    我的腰差点闪了
    关于     帮助文档     自助推广系统     博客     API     FAQ     Solana     5114 人在线   最高记录 6679       Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 24ms UTC 09:35 PVG 17:35 LAX 02:35 JFK 05:35
    Do have faith in what you're doing.
    ubao snddm index pchome yahoo rakuten mypaper meadowduck bidyahoo youbao zxmzxm asda bnvcg cvbfg dfscv mmhjk xxddc yybgb zznbn ccubao uaitu acv GXCV ET GDG YH FG BCVB FJFH CBRE CBC GDG ET54 WRWR RWER WREW WRWER RWER SDG EW SF DSFSF fbbs ubao fhd dfg ewr dg df ewwr ewwr et ruyut utut dfg fgd gdfgt etg dfgt dfgd ert4 gd fgg wr 235 wer3 we vsdf sdf gdf ert xcv sdf rwer hfd dfg cvb rwf afb dfh jgh bmn lgh rty gfds cxv xcv xcs vdas fdf fgd cv sdf tert sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf shasha9178 shasha9178 shasha9178 shasha9178 shasha9178 liflif2 liflif2 liflif2 liflif2 liflif2 liblib3 liblib3 liblib3 liblib3 liblib3 zhazha444 zhazha444 zhazha444 zhazha444 zhazha444 dende5 dende denden denden2 denden21 fenfen9 fenf619 fen619 fenfe9 fe619 sdf sdf sdf sdf sdf zhazh90 zhazh0 zhaa50 zha90 zh590 zho zhoz zhozh zhozho zhozho2 lislis lls95 lili95 lils5 liss9 sdf0ty987 sdft876 sdft9876 sdf09876 sd0t9876 sdf0ty98 sdf0976 sdf0ty986 sdf0ty96 sdf0t76 sdf0876 df0ty98 sf0t876 sd0ty76 sdy76 sdf76 sdf0t76 sdf0ty9 sdf0ty98 sdf0ty987 sdf0ty98 sdf6676 sdf876 sd876 sd876 sdf6 sdf6 sdf9876 sdf0t sdf06 sdf0ty9776 sdf0ty9776 sdf0ty76 sdf8876 sdf0t sd6 sdf06 s688876 sd688 sdf86