linux - Python - import json returning module not found -


i new whole python deal, , admit half lost - don't know whether coming or going. so, here's question , hope can assist me.

i running redhat system , default, has python 2.4 installed. have python script gives me error when attempting import json.

i have checked phpinfo , shows have json version 1.2.1 (or or other) - why isn't python recognizing json exist? there file need edit manually enter or edit python looks json at, , if so, where?

i tried installing simplejson , python 3 - nothing has worked far, , have run out of hair pull out.

any appreciated - in advance.

php not python , fact php version supports json has no effect on python installation. json module introduced in python 2.6.

you try install simplejson, according documentation, supported since python 2.5. (should have read whole question).

i upgrade python version (most recent version 2.7.2). don't why installation of python 3 didn't work, maybe staying same branch (i.e. 2.7) work out.


Comments

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -