pyraf command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
pyraf: command not found
or when using sudo you get the following error message
sudo: pyraf: command not found
Solutions to pyraf: command not found
How To Fix pyraf: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu pyraf is provided by python3-pyraf package.
python3-pyraf is:
PyRAF is a command language for running IRAF tasks in a Python like environment. It works very similar to IRAF CL, but has been updated to allow such things as importing Python modules, GUI parameter editing and help. It can be imported into Python allowing you to run IRAF commands from within a larger script.
To fix this problem, we can install more using the command below.
sudo apt-get -y install python3-pyraf
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install python3-pyraf.
sudo apt -y install python3-pyraf
Or if you have aptitude installed you can use the following command.
sudo aptitude install python3-pyraf
Summary
In this tutorial we learn how to fix pyraf command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.