python查看package安装路径 import inspect import torch_geometric print(inspect.getfile(torch_geometric)) # output: /usr/local/lib/python3.6/dist-packages/torch_geometric/__init__.py