Open In App

How to Install Python py-asn module on MacOS?

Py-asn is a Python module called an extension module. It provides/enables fast IP addresses for autonomous system number lookup. It can search current and historical states using included packages. Inputs can be archived as MRT/RIB BGP. The module is written in C and Python and can be compiled across different operating systems. For storing IP addresses it uses a radix tree data structure. In this article, we will see a simple way to install py-asn on macOS.

Pre Requisites

Below is some recommended thing that you should have for installing the Py-asn module on macOS are:



Installing Py-asn on MacOS

Installation Using PIP

Users who prefer pip can install the py-asn module on macOS using the following command in the terminal:

pip install pyasn



You will get a similar message once the installation is complete.

 

Verifying Py-asn Module Installation Using PIP

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

pip show pyasn

If successfully installed you will get the following output.

 

Article Tags :