import simplejsonpython
报错:ImportError: No module named simplejsonjson
simplejson是ansible一个很重要的依赖,经测试在python 2.4.3及以上版本均可以用python setup.py install 安装成功。测试
安装方法一:spa
yum install python-simplejson -y
安装方法二:3d
wget https://files.pythonhosted.org/packages/e3/24/c35fb1c1c315fc0fffe61ea00d3f88e85469004713dab488dee4f35b0aff/simplejson-3.16.0.tar.gz tar vxzf simplejson-3.16.0.tar.gz cd simplejson-3.16.0 python setup.py install
安装方法三:code
pip install simplejson
安装方法四:blog
easy_install simplejson