Open In App

How to Install SimpleJson Package for Python in MacOS?

SimpleJson is an open-source Python package. It is a fast, simple, and extensible Python JSON encoder and decoder. The encoder can be customized to provide serialization in any case without special support for serializing objects. For this purpose, the dump should be used as the default parameter. The decoder can handle any encoded JSON string (default is UTF-8) according to the specified encoding. The object_hook and object_pairs_hook parameters can also be used for the post-processing of JSON objects. In a protocol like JSON-RPC, its type system is richer than JSON itself. In this article, we will explore simple ways to install simplejson on macOS.

Pre-requisites:

Below are some recommended things that you should have for installing the SimpleJson module on macOS are:



Installing SimpleJsonon macOS.

Method 1: Installation using PIP

Step 1: Users who prefer pip can install the SimpleJson module on macOS using the following command in the terminal:

pip install simplejson

You will get a similar message once the installation is complete



installation of simplejson using pip

Step 2: Verifying SimpleJson Module Installation using pip:

To verify that SimpleJson has been successfully installed on your system, run the following command in the terminal:

pip show simplejson

If successfully installed you will get the following output.

verification of simplejson using pip

Method 2: Installation using Conda

Step 1: Same as above, Users who prefer conda can install the SimpleJson module on macOS using the following command in the terminal:

conda install simplejson

Enter y when prompted for yes.

Once the installation is complete, You will get a similar message

installation of simplejson using conda

Step 2:Verifying SimpleJson Module Installation using conda:

To verify that SimpleJson has been successfully installed on your system, run the following command in the terminal:

conda list simplejson

If successfully installed you will get the following output.

verification of simplejson using conda

Article Tags :