Python 安装mmf时出现torchvision版本问题

Python 安装mmf时出现torchvision版本问题,python,anaconda,torch,torchvision,Python,Anaconda,Torch,Torchvision,我正在尝试安装Facebook,以复制ML竞争对手的基准测试。 我正在关注入门文档 这就是我得到的: (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 ... do

我正在尝试安装Facebook,以复制ML竞争对手的基准测试。 我正在关注入门文档

这就是我得到的:

(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
这里有一个解决方法:

1.在安装mmf之前,安装指定版本的“torch”和“torchvision”(否则会导致上述问题)
pip安装火炬==1.5.0火炬视觉==0.6.0-fhttps://download.pytorch.org/whl/torch_stable.html


不必从pip安装mmf,您可以分叉存储库以获得全新的功能。但是运行
git克隆https://github.com/facebookresearch/mmf.git
也会导致


2.运行以下命令以从源目录和更改目录派生mmf: git clone--config core.symlinks=truehttps://github.com/facebookresearch/mmf.git

cd-mmf

3.安装mmf:
pip安装--可编辑。

4.[可选]运行测试:
pytest./tests/
这里有一个解决方法:

1.在安装mmf之前,安装指定版本的“torch”和“torchvision”(否则会导致上述问题)
pip安装火炬==1.5.0火炬视觉==0.6.0-fhttps://download.pytorch.org/whl/torch_stable.html


不必从pip安装mmf,您可以分叉存储库以获得全新的功能。但是运行
git克隆https://github.com/facebookresearch/mmf.git
也会导致


2.运行以下命令以从源目录和更改目录派生mmf: git clone--config core.symlinks=truehttps://github.com/facebookresearch/mmf.git

cd-mmf

3.安装mmf:
pip安装--可编辑。

4.[可选]运行测试:
pytest./tests/

我也面临同样的问题,问题解决了吗?我也面临同样的问题,问题解决了吗?