14

I am trying to use PyPy on a Windows 7 x64 machine but do not find any way to do it. Apparently there is a win32 binary, but no x64 binary or installation guide. I am currently using Python 2.7.2 win64 (Python 2.7.2 (default, Jun 12 2011, 14:24:46) [MSC v.1500 64 bit (AMD64)] on win32).

Installation from sources raised the following error:

[translation:ERROR] WindowsError: [Error 193] %1 is not a valid Win32 application

Does anyone have a guide/hint to use PyPy on a win64? Or is it just not possible?

Thomas
  • 1,053
  • 2
  • 11
  • 20

4 Answers4

16

PyPy is not compatible with 64bit windows. Primary reason is that sizeof(void*) != sizeof(long) which is a bit annoying. Contributions are more than welcome :)

fijal
  • 3,190
  • 18
  • 21
6

There's no version available for 64 bit Python on Windows. You appear to have the following options:

  1. Download the source to PyPy and port it to 64 bit.
  2. Switch to 32 bit Python.

Option 2 looks more tractable.

David Heffernan
  • 601,492
  • 42
  • 1,072
  • 1,490
3

Just an update on this issue if anyone read it nowadays: PyPy seems to have solved their issues with Windows x64, you can download the 32-bit version of PyPy and it will work flawlessly under Windows 7 x64 (I even have a 64-bit python install beside, and pypy is working nicely along, I just have to specify the full path to pypy to use it for the scripts I need).

gaborous
  • 15,832
  • 10
  • 83
  • 102
  • 3
    I don't think there was ever any issue to run the 32-bit PyPy on the Windows 64 OS. The original question was about the 64-bit PyPy, which doesn't exist so far. – Armin Rigo Sep 23 '15 at 10:43
  • @ArminRigo no the OP asked a way to use PyPy on Win64. He probably guessed that only 64-bit PyPy would run on his platform, but in fact that's not necessary, 32-bit PyPy runs perfectly well. – gaborous Sep 23 '15 at 15:36
  • 2
    (5 years later) yes I was able to run the 32-bit one and was looking for a way to run 64-bit – Thomas Apr 03 '20 at 22:08
1

64-bit PyPy now supports Windows. They wrote a post about how they were finally able to add support (https://doc.pypy.org/en/latest/windows64.html). If you go to their downloads page, they have 64-bit Windows downloads available (https://www.pypy.org/download.html).

preetpalS
  • 84
  • 7