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 (should have read whole question).simplejson
, according documentation, supported since python 2.5.
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
Post a Comment