python json模块导入错误

神奇主机

使用python json模块时出现以下错误

# python
Python 2.4.3 (#1, Jan 11 2013, 02:09:42) 
[GCC 4.1.2 20080704 (Red Hat 4.1.2-54)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import json
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
ImportError: No module named json
>>> 

有人可以帮我吗?

技术角

使用simplejson它会工作

# python
Python 2.4.3 (#1, Jan 11 2013, 02:09:42) 
[GCC 4.1.2 20080704 (Red Hat 4.1.2-54)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import simplejson
>>> 

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章