PyWin32 installer question

Skip Montanaro skip.montanaro at gmail.com
Thu Dec 28 12:49:57 EST 2017


Thanks for the help, Paul.

> When I took a quick look at the code, it seemed to be based on a
> pretty old version of Python. What version are you using?

Yes, last time a Windows installer was created, Python 2.5 was still
in vogue. I switched things to 2.7 with (so far) no obvious problems.

I eventually got past the pywin32 install hassles you referred to when
I stumbled on the pypiwin32 package:

https://pypi.python.org/pypi/pypiwin32/220

On the PyPI site, it does, indeed, look like only Python 3 is
supported, but it seemed to download and install a 2.7 version. This
is from my latest 32-bit build:

pip install py2exe_py2 pypiwin32 Pillow lockfile
Collecting py2exe_py2
Downloading py2exe_py2-0.6.9-cp27-none-win32.whl (134kB)
Collecting pypiwin32
Downloading pypiwin32-219-cp27-none-win32.whl (6.7MB)
Collecting Pillow
Downloading Pillow-4.3.0-cp27-cp27m-win32.whl (1.3MB)
Collecting lockfile
Downloading lockfile-0.12.2-py2.py3-none-any.whl

(I guess it fell back to 219 automatically. Clever tool, that pip...)

So, I'm past that hurdle, and eventually got a successful 32-bit build:

https://ci.appveyor.com/project/smontanaro/spambayes/build/job/5pflj8b6t3qn0naw/artifacts

but now I'm fumbling around with 64-bit (my holy grail, as most
Outlook users are running a 64-bit version, at least based on the
install questions we get on the SpamBayes mailing list):

pip install py2exe_py2 pypiwin32 Pillow lockfile
Collecting py2exe_py2
Could not find a version that satisfies the requirement py2exe_py2
(from versions: )

That error message isn't telling me much about why the requirement
isn't satisfied.

The name of the wheel file suggests that it's architecture-independent:

py2exe_py2-0.6.9-cp27-none-win32.whl

Any idea what it's complaining about?

Skip



More information about the Python-list mailing list