How to install SimpleJson Package for Python

Question:

http://pypi.python.org/pypi/simplejson

I am just diving into the Python world and want to make a simple twitter application which requires the installation of simplejson but not sure how I can set it up and get it working..

I am on a Windows System

Asked By: TimLeung

||

Answers:

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:Python25Scripts).

Answered By: Ryan Duffield

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

Answered By: Jacob Gabrielson

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

Answered By: SearchDream

You can import json as simplejson like this:

import json as simplejson

and keep backward compatibility.

Answered By: hogasa

Really simple way is:

pip install simplejson
Answered By: css-candies
Categories: questions Tags: ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.