简体   繁体   English

在Windows上的virtualenv上安装pyv8时出错

[英]Error installing pyv8 on virtualenv on Windows

I'm trying to install the pyv8 package on a virtualenv on Windows. 我正在尝试在Windows上的virtualenv上安装pyv8软件包。

Here is what I did: 这是我所做的:

virtualenv venv
venv\Scripts\activate
pip install pyv8

and the last command failed with the following error: 并且最后一个命令失败,并显示以下错误:

File "<string>", line 17, in <module>
File "<proj_path>\venv\build\pyv8\setup.py", line 17, in <module>
    include_dirs += os.environ["INCLUDE"].split(';')
File "<proj_path>\venv\lib\os.py", line 423, in __getitem__
    return self.data[key.upper()]
KeyError: 'INCLUDE'

What am I missing? 我想念什么?

There is actually an executable that installs it for you on windows. 实际上有一个可执行文件可以在Windows上为您安装。

When you install it, be sure to point the installation directory to your virtualenv directory. 安装它时,请确保将安装目录指向virtualenv目录。 You might also want to check out this repeat 您可能还想看看这个重复

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

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