首页 > 解决方案 > 通过pip安装medcat时torchvision依赖的版本错误

问题描述

当我尝试通过安装 medcat

pip install medcat

我收到以下错误:

ERROR: Could not find a version that satisfies the requirement torchvision~=0.8.0 (from medcat) (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.5.0, 0.9.0, 0.9.1)
ERROR: No matching distribution found for torchvision~=0.8.0 (from medcat)

对我来说,这意味着没有torchvision 0.8.0 版。

安装 medcat 软件包时如何解决此问题?

标签: pythonpippackagetorchvision

解决方案


通过以下方式安装 medcat 解决了此问题:

pip install --upgrade medcat -f https://download.pytorch.org/whl/torch_stable.html

推荐阅读