python find where a package is installed code example
Example 1: find location of library python linux
import module_name
print(module_name.__file__)
Example 2: check package version python
import packagename
print(packagename.__version__)
import module_name
print(module_name.__file__)
import packagename
print(packagename.__version__)