我尝试为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的方法。
答案 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一起使用。至少我在尝试几个小时之后就无法使用。