How to install pywinauto in python 2.5.1

301 views Asked by At

I am not able to install pywinauto in python 2.5.1

Version 2.5.1 don't have pip. I tried to copy paste pywinauto from 2.7.1 but didn't work.

2

There are 2 answers

2
Jean-François Fabre On BEST ANSWER

from the pywinauto documentation

Installation

(Python 2.5 and before is not supported)

So it's time to upgrade. Python 2.5 now belongs to retrocomputing.

0
Vasily Ryabov On

The latest pywinauto is not compatible with Python 2.5 because statements like except Exception as exc: won't work in Py2.5 (they are required for Py3.x compatibility and work for Py2.6+). Though you have chances with pywinauto==0.4.2 and before. 0.4.2 can be downloaded here (see "Releases" tab in the repo): https://github.com/pywinauto/pywinauto/archive/0.4.2.zip

You need to unpack it and run C:\python25\python.exe setup.py install