Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PyPy on Windows 7 x64?

Tags:

python

pypy

win64

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?

like image 669
Thomas Avatar asked Sep 30 '11 09:09

Thomas


People also ask

Is PyPy fully compatible?

PyPy comes in two versions: one is fully compatible with Python 2.7; the other is fully compatible with one 3. x version.

Is PyPy same as Python?

PyPy is a drop-in replacement for the stock Python interpreter, CPython. Whereas CPython compiles Python to intermediate bytecode that is then interpreted by a virtual machine, PyPy uses just-in-time (JIT) compilation to translate Python code into machine-native assembly language.


2 Answers

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

like image 140
fijal Avatar answered Sep 28 '22 20:09

fijal


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.

like image 29
David Heffernan Avatar answered Sep 28 '22 21:09

David Heffernan