ModuleNotFoundError: No module named ‘fvcore.nn.distributed‘解决办法(安装fvcore)
·
适用情况:
1.更新到最新的 fvcore
2.conda或者pip安装fvcore不成功解决方法
fvcore的GitHub地址:https://github.com/facebookresearch/fvcore
fvcore 需要 pytorch 和 python >= 3.6。
使用下列方式之一进行安装:
-
- 从 PyPI 安装(每晚更新)
pip install -U fvcore
-
- 从 Anaconda Cloud 安装(每晚更新)
conda install -c fvcore -c iopath -c conda-forge fvcore
-
- 从 GitHub 安装最新版本
pip install -U 'git+https://github.com/facebookresearch/fvcore'
-
- 从本地克隆安装
git clone https://github.com/facebookresearch/fvcore
pip install -e fvcore
更多推荐



所有评论(0)