Thomas
Thomas

Reputation: 1083

PyPy on Windows 7 x64?

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?

Upvotes: 14

Views: 10828

Answers (4)

preetpalS
preetpalS

Reputation: 84

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).

Upvotes: 1

gaborous
gaborous

Reputation: 16570

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).

Upvotes: 3

fijal
fijal

Reputation: 3190

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 :)

Upvotes: 16

David Heffernan
David Heffernan

Reputation: 612784

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.

Upvotes: 6

Related Questions