Open In App

How to Install Astropy Python Library on Linux?

Astropy is an open-source library written purely in Python, specifically designed for use in astronomy and astrophysics. Anyone can develop astronomy software with Astropy Astronomy Tools. Astropy library is a cross-platform library for various operating systems such as Windows, Linux, and macOS. In this article, we will see an easy way to install the Astropy module on Linux.

Pre Requisites

Some prerequisites that must be fulfilled before installing the Astropy module on Linux:



Installing Astropy on Linux

Method 1: Installation Using PIP

Step 1: Users who choose pip to install the Astropy module on Linux can enter the following command in the terminal to install.

pip install astropy



A similar message is received once the installation is completed.

 

Step 2: After step 1, it is time to check if Astropy has been successfully installed on our system. To verify, run the following command in a terminal.

pip show astropy

The following output is obtained.

 

Method 2: Installation Using Conda

Step 1: As above, users who choose Conda to install the Astropy module on Linux can write the following command in the terminal to install.

conda install astropy

Type y for yes and press Enter when prompted by the terminal. Once the installation is complete, you will receive a similar message.

Installation of Astropy using Conda

Step 2: Now to verify that Astropy was successfully installed using conda on the system, run the following command in the terminal:

conda list astropy

The following output is obtained.

 

Article Tags :