Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ImportError: No Module named simplejson

Tags:

python

unix

I'm trying to run a command to install bespinclient on my Windows laptop but every time I execute the command python bootstrap.py --no-site-packages, I get an error saying:

ImportError: No module named simplejson

I'm using Mozilla build tools to run these Linux commands.

like image 699
Tony Avatar asked Apr 09 '10 02:04

Tony


1 Answers

That means you must install simplejson. On newer versions of python, it was included by default into python's distribution, and renamed to json. So if you are on python 2.6+ you should change all instances of simplejson to json.

For a quick fix you could also edit the file and change the line:

import simplejson 

to:

import json as simplejson 

and hopefully things will work.

like image 77
nosklo Avatar answered Sep 24 '22 21:09

nosklo