How to retrieve a module's path?

后端 未结 20 2090
无人及你
无人及你 2020-11-22 05:34

I want to detect whether module has changed. Now, using inotify is simple, you just need to know the directory you want to get notifications from.

How do I retrieve

20条回答
  •  情话喂你
    2020-11-22 06:16

    If you installed it using pip, "pip show" works great ('Location')

    $ pip show detectron2

    Name: detectron2
    Version: 0.1
    Summary: Detectron2 is FAIR next-generation research platform for object detection and segmentation.
    Home-page: https://github.com/facebookresearch/detectron2
    Author: FAIR
    Author-email: None
    License: UNKNOWN
    Location: /home/ubuntu/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages
    Requires: yacs, tabulate, tqdm, pydot, tensorboard, Pillow, termcolor, future, cloudpickle, matplotlib, fvcore
    

提交回复
热议问题