简体   繁体   English

Windows 7 x64 上的 PyPy?

[英]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.我正在尝试在 Windows 7 x64 机器上使用 PyPy,但没有找到任何方法。 Apparently there is a win32 binary, but no x64 binary or installation guide.显然有一个 win32 二进制文件,但没有 x64 二进制文件或安装指南。 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).我目前在 win32 上使用 Python 2.7.2 win64(Python 2.7.2(默认,2011 年 6 月 12 日,14:24:46)[MSC v.1500 64 位(AMD64)]。

Installation from sources raised the following error:从源安装引发了以下错误:

[translation:ERROR] WindowsError: [Error 193] %1 is not a valid Win32 application [translation:ERROR] WindowsError: [Error 193] %1 不是有效的 Win32 应用程序

Does anyone have a guide/hint to use PyPy on a win64?有没有人有在 win64 上使用 PyPy 的指南/提示? Or is it just not possible?或者只是不可能?

PyPy is not compatible with 64bit windows. PyPy 与 64 位窗口不兼容。 Primary reason is that sizeof(void*) != sizeof(long) which is a bit annoying.主要原因是 sizeof(void*) != sizeof(long) 这有点烦人。 Contributions are more than welcome :)非常欢迎贡献:)

There's no version available for 64 bit Python on Windows.在 Windows 上没有适用于 64 位 Python 的版本。 You appear to have the following options:您似乎有以下选择:

  1. Download the source to PyPy and port it to 64 bit.将源下载到 PyPy 并将其移植到 64 位。
  2. Switch to 32 bit Python.切换到 32 位 Python。

Option 2 looks more tractable.选项 2 看起来更容易处理。

如果现在有人阅读它,请更新此问题:PyPy 似乎已经解决了他们在 Windows x64 上的问题,您可以下载 PyPy 的 32 位版本,它可以在 Windows 7 x64 下完美运行(我什至有一个 64 位python 安装在旁边,pypy 运行良好,我只需要指定 pypy 的完整路径即可将其用于我需要的脚本)。

64-bit PyPy now supports Windows. 64 位 PyPy 现在支持 Windows。 They wrote a post about how they were finally able to add support ( https://doc.pypy.org/en/latest/windows64.html ).他们写了一篇关于他们如何最终能够添加支持的帖子( 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 ).如果您转到他们的下载页面,他们会提供 64 位 Windows 下载( https://www.pypy.org/download.html )。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM