Detectron2: ImportError: No module named 'fvcore'

Created on 11 Oct 2019  路  8Comments  路  Source: facebookresearch/detectron2

detectron2/detectron2/checkpoint/model_zoo.py", line 3, in <module>
    from fvcore.common.file_io import PathHandler, PathManager
ImportError: No module named 'fvcore'

installation / environment

Most helpful comment

pip install git+https://github.com/facebookresearch/fvcore.git

All 8 comments

pip install git+https://github.com/facebookresearch/fvcore.git

@lzrobots It seems not support 3.5 ubuntu 16.04? Some syntax error happened.

@lzrobots It seems not support 3.5 ubuntu 16.04? Some syntax error happened.

Please see INSTALL.md.
It requires fvcore and python >= 3.6

pip install git+https://github.com/facebookresearch/fvcore.git

i have installed fvcore using the above link, still showing error message as ModuleNotFoundError: No module named 'fvcore.common.registry'

You need to update it with pip install -U git+https://github.com/facebookresearch/fvcore.git

You need to update it with pip install -U git+https://github.com/facebookresearch/fvcore.git

Hi everyone ! I do this but i have the same error :/

Traceback (most recent call last): File "trainer.py", line 1, in <module> from detectron2.data.datasets import register_coco_instances File "/home/alexis/Bureau/detectron2/detectron2/data/__init__.py", line 2, in <module> from . import transforms # isort:skip File "/home/alexis/Bureau/detectron2/detectron2/data/transforms/__init__.py", line 2, in <module> from .transform import * File "/home/alexis/Bureau/detectron2/detectron2/data/transforms/transform.py", line 6, in <module> from fvcore.transforms.transform import HFlipTransform, NoOpTransform, Transform ModuleNotFoundError: No module named 'fvcore'

@AlexisLapeze Hi,

Did you solve it? If yes, can you please share how you did it?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

GiovanniPasq picture GiovanniPasq  路  3Comments

danielgordon10 picture danielgordon10  路  3Comments

marcoippolito picture marcoippolito  路  4Comments

AntonBaumannDE picture AntonBaumannDE  路  3Comments

kl720 picture kl720  路  3Comments