How to install SimpleJson Package for Python

霸气de小男生 提交于 2019-12-03 00:59:53

I would recommend EasyInstall, a package management application for Python.

Once you've installed EasyInstall, you should be able to go to a command window and type:

easy_install simplejson

This may require putting easy_install.exe on your PATH first, I don't remember if the EasyInstall setup does this for you (something like C:\Python25\Scripts).

css-candies

Really simple way is:

pip install simplejson

If you have Python 2.6 installed then you already have simplejson - just import json; it's the same thing.

hogasa

You can import json as simplejson like this:

import json as simplejson

and keep backward compatibility.

Download the source code, unzip it to and directory, and execute python setup.py install.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!