推荐学习书目
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
ykk
V2EX  ›  Python

如何打包 windows 下的 Python +cuda+tensorflow 程序成为 exe?

  •  2
     
  •   ykk · Jul 16, 2021 · 2790 views
    This topic created in 1766 days ago, the information mentioned may be changed or developed.
    这块确实是知识盲区,是用 pyinstaller 做的还是 VS 做的呢?

    需要打包完成后在没有 cuda 环境的任意一台有 GPU 的 windows 电脑上运行,目前看到别人打包的程序中有大量的 dll 文件,同时也存在原始 python 代码
    5 replies    2021-07-16 18:52:19 +08:00
    tan90du2
        1
    tan90du2  
       Jul 16, 2021
    cuda 是个显卡的驱动程序,和操作系统版本、显卡可能都有关系,怎么能打包到你的应用里在所有电脑上运行?
    3dwelcome
        2
    3dwelcome  
       Jul 16, 2021
    @tan90du2 可以直接发布 cuda 二进制的 dll, 只要是 N 卡并且驱动版本不旧,就能直接用。

    waifu2x-caffe 就是这样做的。
    zxCoder
        3
    zxCoder  
       Jul 16, 2021 via Android
    这么奇怪的需求
    ykk
        4
    ykk  
    OP
       Jul 16, 2021
    @3dwelcome 是的 请问如何发布 cuda 的 dll,是用 VS 吗?
    7075
        5
    7075  
       Jul 16, 2021
    node + tf.js 更现实点?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1631 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 41ms · UTC 16:18 · PVG 00:18 · LAX 09:18 · JFK 12:18
    ♥ Do have faith in what you're doing.