Open In App

How to Install Jmespath-terminal on Linux?

Last Updated : 12 Feb, 2022
Improve
Improve
Like Article
Like
Save
Share
Report

JMESPath is known as JSON document manipulation expression language. It is a programming language that allows you to create a JMESPath expression that, when applied to an input JSON document, generates an output JSON document depending on the expression you gave. Experimenting with JMESPath expressions is one of the most effective ways to learn the language. When you use the JMESPath Terminal, you can see the results of your JMESPath expressions as you enter. In this article, we will discuss how to install Jmespath-term on Linux.

Installing Jmespath-terminal on Linux 

Method 1: Using pip to install Jmespath-terminal Package on Linux

Follow the below steps to install the Jmespath-terminal package on Linux using pip:

Step 1: First we Install the latest version of Python3 in our Linux system.

Step 2: Now we check if pip and python are correctly installed or not in our system by checking their versions:

python3 –version

pip3 –version

Checking-python3-and-pip3-version

Step 3: Upgrade your pip3 with the latest version to smoothly run the installation process.

pip3 install –upgrade pip

Upgrading-pip3

Step 4: Now we install Jmespath-terminal using pip3 using the following command on our Linux system:

pip3 install jmespath-terminal

installing-Jmespath-terminal-package-on-Linux-using-pip3

Note: You should have setuptools installed in your system with version less than 58.0.0

Method 2: Using setup.py to install Jmespath-terminal on Linux

Follow the below steps to install the Jmespath-terminal package on Linux using the setup.py file:

Step 1: Download the latest source package of Jmespath-terminal from the website for Linux.

curl https://files.pythonhosted.org/packages/eb/f8/517e5f01e657b0ba384e133e0e6c92c577c96c57b3029b9d29b6baa3662f/jmespath-terminal-0.2.1.tar.gz > jmespath.tar.gz

Downloading-the-source-package-of-Jmespath-terminal

Step 2: Now we extract the downloaded jmespath package with help of the following command.

tar -xzvf jmespath.tar.gz

Extracting-the-jmespath.tar.gz-file

Step 3: Now we install urwid package because jmespath-terminal required this package. So we use the following command to install the latest version of urwid==1.2.2.

pip3 install urwid==1.2.2

installling-urwid

Step 4: Now go to the jmespath-terminal-0.2.1 and run python setup.py.

cd jmespath-terminal-0.2.1

python3 setup.py install

installing-Jmespath-terminal-using-the-setup.py-file

Verifying Jmespath-terminal installation on Linux 

To verify that Jmespath-terminal is successfully installed in our Linux system we use the following command in your terminal:

jpterm

Verifying-Jmespath-terminal-installation

If you do not get any error in the output then this means that the Jmespath-terminal is successfully installed in your system.


Like Article
Suggest improvement
Previous
Next
Share your thoughts in the comments

Similar Reads