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
shimingzhoudf
V2EX  ›  Python

Linux win32com

  •  
  •   shimingzhoudf · 2020-07-15 16:33:57 +08:00 · 2279 次点击
    这是一个创建于 1378 天前的主题,其中的信息可能已经有所发展或是发生改变。

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

    5 条回复    2020-07-16 10:50:53 +08:00
    DJQTDJ
        1
    DJQTDJ  
       2020-07-15 16:58:43 +08:00
    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  
       2020-07-15 18:26:41 +08:00 via Android
    不行。另外请说清楚你要实现什么。
    shimingzhoudf
        3
    shimingzhoudf  
    OP
       2020-07-16 09:38:54 +08:00
    @ysc3839 python 在 linux 实现 word 转 pdf
    ysc3839
        4
    ysc3839  
       2020-07-16 10:46:19 +08:00 via Android
    @shimingzhoudf 试试用 Wine 吧,不过不知道 Office 能不能在 Wine 上运行。
    jiejiss
        5
    jiejiss  
       2020-07-16 10:50:53 +08:00
    @shimingzhoudf #3 这不应该用 VBA 么
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   977 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 21:43 · PVG 05:43 · LAX 14:43 · JFK 17:43
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.