简体   繁体   English

尝试为 Python 3.4 安装 PyV8 时出现错误

[英]Error raised while trying to install PyV8 for Python 3.4

I tried to install PyV8 for Python 3.4, but an error was raised.我尝试为 Python 3.4 安装 PyV8,但出现错误。 I googled for solutions, but I couldn't find a way to install PyV8 for Python 3.4 on Windows.我在谷歌上搜索了解决方案,但找不到在 Windows 上为 Python 3.4 安装 PyV8 的方法。

My system:我的系统:
Windows 10 home Windows 10家
Python 3.4 (64bit) Python 3.4(64 位)
Eclipse Neon 2 Eclipse霓虹灯2

I tried using PIP:我尝试使用 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>

Apparently it's a problem of compatibility.显然这是兼容性问题。 If you look at https://pypi.python.org/pypi/PyV8 you will see the download list https://code.google.com/archive/p/pyv8/downloads which are compatible only with Python 2.5, 2.6 and 2.7.如果您查看https://pypi.python.org/pypi/PyV8 ,您将看到下载列表https://code.google.com/archive/p/pyv8/downloads仅与 Python 2.5、2.6 和2.7. So it seems that you can't use PyV8 together with Python 3. At least I couldn't after trying for several hours.所以看起来你不能将 PyV8 与 Python 一起使用 3. 至少我试了几个小时后不能。

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

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