简体   繁体   English

适用于 Mac 的 python win32api

[英]python win32api for Mac

I have been trying to perform some advanced word document manipulation with python-docx , but I was advised to use Microsoft office API .我一直在尝试使用python-docx执行一些高级 word 文档操作,但我被建议使用 Microsoft office API

The problem is that I can't install win32api from pywin32 home page because I get the following error:问题是我无法从pywin32主页安装win32api ,因为我收到以下错误:

(IntellibookVenv) MacBook-Pro-de-Hugo:Intellibook hugovillalobos$ pip install pywin32
Collecting pywin32
  Could not find a version that satisfies the requirement pywin32 (from versions: )
No matching distribution found for pywin32

I don't know wether I get the error because there is not win32api version for Mac, or wether I am doing something wrongly.我不知道我是因为没有适用于 Mac 的win32api版本而收到错误,还是我做错了什么。

pywin32 is: pywin32 是:

Python extensions for Microsoft Windows Provides access to much of the Win32 API, the ability to create and use COM objects, and the Pythonwin environment.适用于 Microsoft Windows 的 Python 扩展 提供对大部分 Win32 API 的访问、创建和使用 COM 对象的能力以及 Pythonwin 环境。

which essentially means an interface for Python to access the native Windows API.这实质上意味着 Python 访问本机 Windows API 的接口。 Obviously this means to use it on Windows exclusively (I tried, doesn't event work under cygwin, so don't even think about Mac)显然这意味着只在 Windows 上使用它(我试过,在 cygwin 下事件不起作用,所以不要考虑 Mac)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM