Search code examples
pythonpython-3.6

Error when installing pywin32 (on Ubuntu)


I'm trying to install the pywin32 module on Ubuntu for python 3.6, I've tried pip3 install pywin32 and got the following output:

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

Then I tried pip3 install pypiwin32 and got the following output:

Collecting pypiwin32
  Using cached https://files.pythonhosted.org/packages/d0/1b/2f292bbd742e369a100c91faa0483172cd91a1a422a6692055ac920946c5/pypiwin32-223-py3-none-any.whl
Collecting pywin32>=223 (from pypiwin32)
  Could not find a version that satisfies the requirement pywin32>=223 (from pypiwin32) (from versions: )
No matching distribution found for pywin32>=223 (from pypiwin32)

Solution

  • The pywin32 and pypiwin32 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."

    One supported OS is Microsoft Windows, because you can access the Win32 API only from Windows.


    Source: https://pypi.org/project/pywin32/