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

Linux win32com

  •  
  •   shimingzhoudf · Jul 15, 2020 · 3483 views
    This topic created in 2266 days ago, the information mentioned may be changed or developed.

    linux 中可以安装 win32com 库么,求指点

    5 replies  •  2020-07-16 10:50:53 +08:00
    DJQTDJ
        1
    DJQTDJ  
       Jul 15, 2020
    The Python WMI module is a lightweight wrapper on top of the pywin32 extensions ( PyPI )
    因为 WMI 模块本身是以 Windows 上的 Python 扩展( pywin32 )为前提制作的,所以在 Windows 以外的环境中无法使用。
    ( pywin32 本身也调用 Win32 API,所以在 Windows 环境以外没有应该称为 Win32 API )

    通过 wine 来模拟 Win32 API,没测试过我也不知道。
    用 impacket 等 Python 本地人安装了 WMI 协议的程序库的形式重写
    ysc3839
        2
    ysc3839  
       Jul 15, 2020 via Android
    不行。另外请说清楚你要实现什么。
    shimingzhoudf
        3
    shimingzhoudf  
    OP
       Jul 16, 2020
    @ysc3839 python 在 linux 实现 word 转 pdf
    ysc3839
        4
    ysc3839  
       Jul 16, 2020 via Android
    @shimingzhoudf 试试用 Wine 吧,不过不知道 Office 能不能在 Wine 上运行。
    jiejiss
        5
    jiejiss  
       Jul 16, 2020
    @shimingzhoudf #3 这不应该用 VBA 么
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   5242 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 50ms · UTC 01:45 · PVG 09:45 · LAX 18:45 · JFK 21:45
    ♥ Do have faith in what you're doing.