find where a package is installed python code example
Example 1: find location of library python linux
import module_name
print(module_name.__file__)
Example 2: list all packages installed with pip
pipenv lock -r
import module_name
print(module_name.__file__)
pipenv lock -r