2

我尝试为 Python 3.4 安装 PyV8。但它不起作用。

我的系统;Windows 10 家庭版;Python 3.4(64 位);日食霓虹灯 2

我通过 PIP 尝试过

C:\Program Files (x86)\Python34\Scripts>pip install pyv8
Downloading/unpacking pyv8
  Downloading PyV8-0.5.zip
  Running setup.py (path:C:\Users\ME\AppData\Local\Temp\pip_build_Sebastian Weidemann\pyv8\setup.py) egg_info for package pyv8
    Traceback (most recent call last):
      File "<string>", line 17, in <module>
      File "C:\Users\ME\AppData\Local\Temp\pip_build_Sebastian Weidemann\pyv8\setup.py", line 17, in <module>
        include_dirs += os.environ["INCLUDE"].split(';')
      File "C:\Program Files (x86)\Python34\lib\os.py", line 651, in __getitem__
        raise KeyError(key) from None
    KeyError: 'INCLUDE'
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "<string>", line 17, in <module>

  File "C:\Users\ME\AppData\Local\Temp\pip_build_Sebastian Weidemann\pyv8\setup.py", line 17, in <module>

    include_dirs += os.environ["INCLUDE"].split(';')

  File "C:\Program Files (x86)\Python34\lib\os.py", line 651, in __getitem__

    raise KeyError(key) from None

KeyError: 'INCLUDE'

----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in C:\Users\ME\AppData\Local\Temp\pip_build_ME\pyv8
Storing debug log for failure in C:\Users\ME\pip\pip.log

C:\Program Files (x86)\Python34\Scripts>

我搜索了一些,但我找不到在 Windows 上安装 PyV8 for Python 3.4 的方法。

4

1 回答 1

2

显然是兼容性问题。如果您查看https://pypi.python.org/pypi/PyV8,您将看到仅与 Python 2.5、2.62.7. 因此,您似乎无法将 PyV8 与 Python 3 一起使用。至少尝试了几个小时后我不能。

于 2017-11-07T22:53:06.250 回答