简体   繁体   中英

Error installing pyv8 on virtualenv on Windows

I'm trying to install the pyv8 package on a virtualenv on Windows.

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.

When you install it, be sure to point the installation directory to your virtualenv directory. You might also want to check out this repeat

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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