{"id":6434,"date":"2014-06-19T09:32:36","date_gmt":"2014-06-19T01:32:36","guid":{"rendered":"http:\/\/jpuyy.com\/?p=6434"},"modified":"2014-11-09T18:28:42","modified_gmt":"2014-11-09T10:28:42","slug":"python-install-simplejson","status":"publish","type":"post","link":"https:\/\/jpuyy.com\/?p=6434","title":{"rendered":"python\u5b89\u88c5simplejson"},"content":{"rendered":"<p>\u6ca1\u6709\u5b89\u88c5simplejson\u65f6\u62a5\u9519<\/p>\n<p class=\"p1\">&gt;&gt;&gt; import simplejson<\/p>\n<p class=\"p1\">Traceback (most recent call last):<\/p>\n<p class=\"p1\">\u00a0 File &#8220;&lt;stdin&gt;&#8221;, line 1, in &lt;module&gt;<\/p>\n<p class=\"p1\">ImportError: No module named simplejson<\/p>\n<p class=\"p1\">simplejson\u662fansible\u4e00\u4e2a\u5f88\u91cd\u8981\u7684\u4f9d\u8d56\uff0c\u7ecf\u6d4b\u8bd5\u5728python 2.4.3\u53ca\u4ee5\u4e0a\u7248\u672c\u90fd\u53ef\u4ee5\u7528python setup.py install \u5b89\u88c5\u6210\u529f\u3002<\/p>\n<p class=\"p1\">\u65b9\u6cd5\u4e00:<\/p>\n<pre class=\"p1\">yum install python-simplejson -y<\/pre>\n<p class=\"p1\">\u65b9\u6cd5\u4e8c:<\/p>\n<pre class=\"p1\">wget https:\/\/pypi.python.org\/packages\/source\/s\/simplejson\/simplejson-3.5.2.tar.gz#md5=10ff73aa857b01472a51acb4848fcf8b --no-check-certificate\r\ntar vxzf simplejson-3.5.2.tar.gz\r\ncd simplejson-3.5.2\r\npython setup.py install<\/pre>\n<p class=\"p1\">\u65b9\u6cd5\u4e09:<\/p>\n<pre class=\"p1\">pip install simplejson<\/pre>\n<p class=\"p1\">\u65b9\u6cd5\u56db:<\/p>\n<pre class=\"p1\">easy_install simplejson<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u6ca1\u6709\u5b89\u88c5simplejson\u65f6\u62a5\u9519 &gt;&gt;&gt; import simplejson Traceback (most recent call last): \u00a0 File &#8220;&lt;stdin&gt;&#8221;, line 1, in &lt;module&gt; ImportError: No module named simplejson simplejson\u662fansible\u4e00\u4e2a\u5f88\u91cd\u8981\u7684\u4f9d\u8d56\uff0c\u7ecf\u6d4b\u8bd5\u5728python 2.4.3\u53ca\u4ee5\u4e0a\u7248\u672c\u90fd\u53ef\u4ee5\u7528python setup.py install \u5b89\u88c5\u6210\u529f\u3002 \u65b9\u6cd5\u4e00: yum install python-simplejson -y \u65b9\u6cd5\u4e8c: wget https:\/\/pypi.python.org\/packages\/source\/s\/simplejson\/simplejson-3.5.2.tar.gz#md5=10ff73aa857b01472a51acb4848fcf8b &#8211;no-check-certificate tar vxzf simplejson-3.5.2.tar.gz cd simplejson-3.5.2 python setup.py install \u65b9\u6cd5\u4e09: pip install simplejson \u65b9\u6cd5\u56db: easy_install simplejson<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[166,165,76],"tags":[],"class_list":["post-6434","post","type-post","status-publish","format-standard","hentry","category-ansible","category-ops","category-python"],"_links":{"self":[{"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/posts\/6434","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/jpuyy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6434"}],"version-history":[{"count":6,"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/posts\/6434\/revisions"}],"predecessor-version":[{"id":6833,"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/posts\/6434\/revisions\/6833"}],"wp:attachment":[{"href":"https:\/\/jpuyy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6434"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jpuyy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6434"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jpuyy.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6434"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}