How to install SimpleJson Package for Python

前端 未结 5 1774
名媛妹妹
名媛妹妹 2021-02-05 01:06

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

相关标签:
5条回答
  • 2021-02-05 01:36

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

    0 讨论(0)
  • 2021-02-05 01:43

    Really simple way is:

    pip install simplejson
    
    0 讨论(0)
  • 2021-02-05 01:45

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

    0 讨论(0)
  • 2021-02-05 01:55

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

    0 讨论(0)
  • 2021-02-05 01:57

    You can import json as simplejson like this:

    import json as simplejson
    

    and keep backward compatibility.

    0 讨论(0)
提交回复
热议问题