在 Windows 7 x64 的 PyPy3.5 v5.10 上使用 ensurepip 进行 pip 安装

pip install with ensurepip on PyPy3.5 v5.10 in Windows 7 x64

为什么我无法使用 pypy3 -m ensurepip 安装 pip?我从 official package, and followed instructions at official docs 中解压了 PyPy,但出现了错误。解释器日志如下。

Traceback (most recent call last):
  File "D:\pypy3-v5.10.0-win32\lib-python\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "D:\pypy3-v5.10.0-win32\lib-python\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "D:\pypy3-v5.10.0-win32\lib-python\ensurepip\__main__.py", line 4, in <module>
    ensurepip._main()
  File "D:\pypy3-v5.10.0-win32\lib-python\ensurepip\__init__.py", line 209, in _main
    default_pip=args.default_pip,
  File "D:\pypy3-v5.10.0-win32\lib-python\ensurepip\__init__.py", line 116, in bootstrap
    _run_pip(args + [p[0] for p in _PROJECTS], additional_paths)
  File "D:\pypy3-v5.10.0-win32\lib-python\ensurepip\__init__.py", line 40, in _run_pip
    import pip
  File "C:\Users\user\AppData\Local\Temp\tmp5zq6hqua\pip-9.0.1-py2.py3-none-any.whl\pip\__init__.py", line 21, in <module>
  File "C:\Users\user\AppData\Local\Temp\tmp5zq6hqua\pip-9.0.1-py2.py3-none-any.whl\pip\_vendor\requests\__init__.py", line 62, in <module>
  File "C:\Users\user\AppData\Local\Temp\tmp5zq6hqua\pip-9.0.1-py2.py3-none-any.whl\pip\_vendor\requests\packages\__init__.py", line 27, in <module>
  File "C:\Users\user\AppData\Local\Temp\tmp5zq6hqua\pip-9.0.1-py2.py3-none-any.whl\pip\_vendor\requests\packages\urllib3\__init__.py", line 8, in <module>
  File "C:\Users\user\AppData\Local\Temp\tmp5zq6hqua\pip-9.0.1-py2.py3-none-any.whl\pip\_vendor\requests\packages\urllib3\connectionpool.py", line 101, in <module>
AttributeError: module 'errno' has no attribute 'EWOULDBLOCK'

Windows(测试版)上 pypy3 的 errno 模块确实不完整。这已在 5.10.0 版本后修复,并将包含在 5.10.1 版本中。

我们从最新的 HEAD 构建夜间 zip 文件,可用 here. It would be great if you could try out the latest windows version and let us know on IRC at #pypy, or on the pypy-dev mailing list, or by filing an issue on our bitbucket issue tracker 无论它是否适合你,这样我们就不需要在当前版本之后进行 5.10.2 错误发布修复。