Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PEP 514 compatibility? #738

Closed
ghost opened this issue Dec 28, 2016 · 4 comments
Closed

PEP 514 compatibility? #738

ghost opened this issue Dec 28, 2016 · 4 comments

Comments

@ghost
Copy link

ghost commented Dec 28, 2016

So I installed Python 3.6.0 (64 bit), then tried to install pywin32-220.win-amb64-py3.6.exe and it reported


Cannot install

Python version 3.6-32 required, which was not found in the registry.

OK

Not sure what it is looking for in the registry, but PEP 514 maybe changed some of that?

Reported by: guruglenn

Original Ticket: pywin32/bugs/738

@ghost
Copy link
Author

ghost commented Jan 2, 2017

Yes, this may be related to the new PEP rules. I had the same problem, but found a quick and dirty way around it:

To install the 64-bit version go to HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore and temporarily rename the 3.6 subkey to 3.6-32. This will allow the installer to find Python. After you're done, make sure to restore the key to its original value.

Similarly, for the 32-bit version, go to HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Python\PythonCore and rename the 3.6-32 subkey to 3.6.

Original comment by: efotinis

@ghost
Copy link
Author

ghost commented Jan 5, 2017

Note that while installing does work after renaming the key to "3.6-32" (thanks for the tip!), the Pythonwin installer will still place its helpfile reference under "3.6". This requires some extra fiddling until the correct situation is established again.
According to PEP 514, the distinction between 32 and 64 bit versions for PythonCore is not done via the tag, but via the path (32 bit under Wow6432Node). Using a "...-32" tag for a 64 bit version doesn't make for a very obvious logic in any case.

Original comment by: sch

@ghost
Copy link
Author

ghost commented Jan 17, 2017

Installing pywin32 from pip is much easier:

pip install pypiwin32

Original comment by: xaav

@ghost ghost assigned ghost and unassigned ghost Oct 24, 2017
@Avasam
Copy link
Collaborator

Avasam commented Mar 14, 2024

.exe installers are now deprecated #1939 and wheels for all bitness are available on PyPI

@Avasam Avasam closed this as completed Mar 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant