Open In App

How to Install Python py-asn module on Linux?

Last Updated : 25 Apr, 2022
Improve
Improve
Like Article
Like
Save
Share
Report

Py-asn is a Python library that is considered as the extension library which activates very fast Internet Protocol addresses to Autonomous System Number lookups. We can also perform current state and historical state lookups with the help of this package. Input given to this package is MRT/RIB BGP archive. So, in this article, we will be installing the Py-asn package in the Python3 environment on Linux Operating System.

Installing the Py-asn package on Linux using PIP

Requirements:

  1. Python3   
  2. Python3-pip

To install the Py-asn package in Linux follow the following steps:

Step 1: Firstly, we will install the current version of Python3 using the following command.

sudo apt-get install python3

Install-the-current-version-of-Python3

 

Step 2: Now, we will install the pip package manager, which is responsible for installing the external packages. Use the below command to install the pip manager

sudo apt install python3-pip

Installing-the-pip-package-manager

 

Step 3: Now using the PIP manager we are going to install the Py-asn package. So for the installation run the following command on the terminal.

sudo pip3 install pyasn

Installing-the-Py-asn-package

 

Verifying the installation of the Py-asn package 

After installing the package, the next important step is to check the installation of the Py-asn package is successful or not. So here, we are simply getting the information of the installed package (Py-asn) by executing the below command on the terminal itself.

python3 -m pip show pyasn

The below output will be displayed after the successful installation of the Py-asn package on your Linux machine.

Verifying-the-installation-of-the-Py-asn-package

 


Like Article
Suggest improvement
Share your thoughts in the comments

Similar Reads