how to find where python packages are installed code example
Example 1: find location of library python linux
import module_name
print(module_name.__file__)
Example 2: how to find where python modules are installed
# this will show where numpy is installed
pip show numpy