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 · 2838 次点击
    这是一个创建于 1460 天前的主题,其中的信息可能已经有所发展或是发生改变。

    大佬们好,我想把用 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   ·   我们的愿景   ·   实用小工具   ·   3153 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 14:40 · PVG 22:40 · LAX 07:40 · JFK 10:40
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.