how to add path with module to python?

Qba picture Qba · Jul 17, 2013 · Viewed 10.4k times · Source

I try to build V8 javascript engine. When I try to invoke the command python build/git_v8, I get error:

File build/gyp_v8, line 48 in < module >
     import gyp
ImportError: No module named GYP

How I can tell python where search GYP module and what is the correct path to the module in the folder GYP?

My version of python is 2.6.2.2, recommended in build instructions.

Answer

kangear picture kangear · Oct 20, 2014

Install the module will be fine.

git clone https://chromium.googlesource.com/external/gyp
cd gyp
sudo ./setup.py install

enjoy it.