python win32api for Mac

前提是你 提交于 2019-12-11 00:43:05

问题


I have been trying to perform some advanced word document manipulation with python-docx, but I was advised to use Microsoft office API.

The problem is that I can't install win32api from pywin32 home page because I get the following error:

(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.


回答1:


pywin32 is:

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.

which essentially means an interface for Python to access the native 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)



来源:https://stackoverflow.com/questions/54372616/python-win32api-for-mac

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!