Install astro-python by entering the following commands in the terminal:
sudo apt update sudo apt install astro-python
Python 2 packages for astronomy
This metapackage will install Python 2 packages for astronomy. The packages can be used for interactive analysis, or to create specific programs. . Note that Python 2 is legacy only, Python 3 is the present and future of the language. The support for Python 2 will end in 2020. Please use Python 2 only if you don't have a choice.