title: ImportError: No module named json
body: <p>While installing a c++ library I ran into a Python problem (and I do not know nothing about this language). While running some Python code the shell gives me the following error:</p>
  
  <pre><code>Traceback (most recent call last):
    File "C:\C++_libraries\v8\tools\dev\v8gen.py", line 54, in &lt;module&gt;
      import mb
    File "C:\C++_libraries\v8\tools\mb\mb.py", line 37, in &lt;module&gt;
      import json
  ImportError: No module named json
  </code></pre>
  
  <p>I am using python 2.7.6 and I'm almost sure json is installed - I have a folder Lib/json containing the following files:</p>
  
  <pre><code>__init__.py  __init__.pyc  decoder.py  decoder.pyc  encoder.py  encoder.pyc  scanner.py  scanner.pyc  tool.py
  </code></pre>
  
  <p>When I run <code>import json</code> from the cmd it seems to work:</p>
  
  <pre><code>c:\C++_libraries\v8\tools\dev&gt;python
  Python 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500 32 bit (Intel)] on win32
  Type "help", "copyright", "credits" or "license" for more information.
  &gt;&gt;&gt; import json
  &gt;&gt;&gt; print(json.__file__)
  C:\depot_tools\python276_bin\lib\json\__init__.pyc
  </code></pre>
  
  <p>I tried substituting the code line <code>import json</code> with <code>import simplejson as json</code> but then it says </p>
  
  <blockquote>
    <p>no module named simplejson</p>
  </blockquote>
  
  <p>(of course I also installed <code>simplejson</code>). I really do not know what else I can try.</p>
  
  <p>Thanks in advance.</p>