Python 3.4无法安装Pyv8模块

时间:2017-03-27 12:29:57

标签: windows python-3.x install pyv8

我尝试为Python 3.4安装PyV8。但它无效。

我的系统; Windows 10家庭; Python 3.4(64位); Eclipse Neon 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的方法。

1 个答案:

答案 0 :(得分:1)

显然这是兼容性问题。如果查看https://pypi.python.org/pypi/PyV8,您将看到仅与Python 2.5,2.6和2.7兼容的下载列表https://code.google.com/archive/p/pyv8/downloads。因此,似乎你不能将PyV8与Python 3一起使用。至少我在尝试几个小时之后就无法使用。