D:\documents\envs\alphapose\python.exe D:\PycharmProjects\AlphaPose-master\scripts\demo_inference.py Traceback (most recent call last): File "D:\PycharmProjects\AlphaPose-master\scripts\demo_inference.py", line 14, in <module> from trackers.tracker_api import Tracker File "D:\PycharmProjects\AlphaPose-master\trackers\tracker_api.py", line 21, in <module> from utils.utils import * File "D:\PycharmProjects\AlphaPose-master\trackers\utils\utils.py", line 16, in <module> from torchvision.ops import nms ModuleNotFoundError: No module named 'torchvision.ops' Process finished with exit code 1
时间: 2023-07-21 11:04:56 浏览: 190
Python库 | jupyter_latex_envs-1.2.11.tar.gz
这个错误是由于没有找到名为torchvision.ops的模块引起的。这通常是由于您没有安装或安装了不兼容的torchvision版本导致的。您可以尝试使用以下命令来安装torchvision:
```
pip install torchvision
```
如果您已经安装了torchvision,可能需要更新到最新版本:
```
pip install --upgrade torchvision
```
如果问题仍然存在,您可以检查您的Python环境和依赖项是否正确设置,并确保torchvision被正确安装。
阅读全文