Skip to content
Advertisement

Python 3.6 install win32api?

Is there a way to install the win32api module for python 3.6 or do I have to change my version of python? Everytime I try to install it using pip I get the following error:

 Could not find a version that satisfies the requirement win32api (from versions: )
No matching distribution found for win32api 

Advertisement

Answer

Information provided by @Gord

Since September 2019 pywin32 should be installed via PyPI which ensures that the latest version (currently version 304) is installed. This is done via the pip command

pip install pywin32

If you wish to get an older version the sourceforge link below would probably have the desired version, if not you can use the command, where xxx is the version you require, e.g. 300

pip install pywin32==xxx

This differs to the pip command in another comment and in an old edit of this answer in that pypiwin32 installs an outdated version (namely 223)

Browsing the docs I see no reason for these commands to not work for all python3.x versions, I am unsure on python2.7 and below so you would have to try them and if they do not work then the solutions below will work.


Probably now undesirable solutions but certainly still valid as of September 2019

There is no version of specific version ofwin32api. You have to get the pywin32module which currently cannot be installed via pip. It is only available from this link at the moment.

https://sourceforge.net/projects/pywin32/files/pywin32/Build%20220/

The install does not take long and it pretty much all done for you. Just make sure to get the right version of it depending on your python version :)


Also it can be installed from this GitHub repository as provided in comments by @Heath

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement