我正在尝试安装Facebook的mmf,以复制机器学习竞赛Hateful Memes中的基准测试。 我正在遵循入门文档here。
这就是我得到的:
(gpu) C:\Users\abc>pip install --upgrade --pre mmf
Collecting mmf
Using cached mmf-1.0.0rc10.tar.gz (160 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing wheel metadata ... done
ERROR: Could not find a version that satisfies the requirement torchvision==0.6.0 (from mmf) (from versions: 0.1.6, 0.1.7, 0.1.8, 0.1.9, 0.2.0, 0.2.1, 0.2.2, 0.2.2.post2, 0.2.2.post3, 0.3.0, 0.4.1, 0.5.0)
ERROR: No matching distribution found for torchvision==0.6.0 (from mmf)
ERROR: Could not find a version that satisfies the requirement torchvision==0.6.0 (from mmf) (from versions: 0.1.6, 0.1.7, 0.1.8, 0.1.9, 0.2.0, 0.2.1, 0.2.2, 0.2.2.post2, 0.2.2.post3, 0.3.0, 0.4.1, 0.5.0)
ERROR: No matching distribution found for torchvision==0.6.0 (from mmf)
如果我检查已安装的conda软件包,我可以找到:
torch 1.5.1 pypi_0 pypi
torchvision 0.6.1 pypi_0 pypi
答案 0 :(得分:0)
这是一种解决方法:
pip install torch==1.5.0 torchvision==0.6.0 -f https://download.pytorch.org/whl/torch_stable.html
除了从pip安装mmf外,还可以派生存储库以获取全新功能。但是运行git clone https://github.com/facebookresearch/mmf.git
也会导致an issue。
git clone --config core.symlinks=true https://github.com/facebookresearch/mmf.git
cd mmf
pip install --editable .
pytest ./tests/