V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
推荐学习书目
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 · Apr 26, 2020 · 3673 views
    This topic created in 2196 days ago, the information mentioned may be changed or developed.

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

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

    看到后半句...
    yinuxy
        5
    yinuxy  
    OP
       Apr 26, 2020 via Android
    @jdhao 好的,我去看看
    yinuxy
        6
    yinuxy  
    OP
       Apr 26, 2020 via Android
    @ClericPy 嘿嘿嘿,随便打个小广告,感谢大佬指导,不懂再来问
    wesleyweatherly
        7
    wesleyweatherly  
       Apr 27, 2020
    @jdhao 看了你的英文博客 感觉很棒。还有哪里有类似你博客这样的中国人些的英文的编程技术博客,能介绍给我吗?
    wesleyweatherly
        8
    wesleyweatherly  
       Apr 27, 2020
    crab
        9
    crab  
       Apr 27, 2020
    nuitka
    heyhumor
        10
    heyhumor  
       Apr 27, 2020
    chromedriver 打包没意义啊,版本更新了还得换
    deplives
        11
    deplives  
       Apr 27, 2020
    大家没发现,前面全是铺垫,后半句才是重点么?
    qW7bo2FbzbC0
        12
    qW7bo2FbzbC0  
       Apr 27, 2020
    不太好使,相关需求已经转 Netcore 3.1 和 golang 了
    yinuxy
        13
    yinuxy  
    OP
       Apr 27, 2020
    @hjahgdthab750 嘿嘿,前半句才是重点!!!
    jdhao
        14
    jdhao  
       Apr 27, 2020 via Android
    @wesleyweatherly 这个我也不清楚,碰运气吧。。😄
    Citrullus
        15
    Citrullus  
       Apr 27, 2020
    🐂🍺我的腰差点闪了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   819 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 47ms · UTC 22:16 · PVG 06:16 · LAX 15:16 · JFK 18:16
    ♥ Do have faith in what you're doing.