Python3 ModuleNotFoundError:没有名为“ torch2trt.plugins”的模块

时间:2020-06-11 14:34:17

标签: python import module

谢谢!

我已经按照以下步骤安装了torch2trt: git clone https://github.com/NVIDIA-AI-IOT/trt_pose cd trt_pose sudo python3 setup.py安装

通过终端打开python3,我可以执行以下操作-哇!

import torch2trt
print(torch2trt.__file__)
/home/user/torch2trt/torch2trt/__init__.py

但是,当我运行导入torch2trt的脚本时,会收到以下消息:

import torch2trt
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.6/dist-packages/torch2trt-0.1.0-py3.6.egg/torch2trt/__init__.py", line 14, in <module>
  File "/usr/local/lib/python3.6/dist-packages/torch2trt-0.1.0-py3.6.egg/torch2trt/__init__.py", line 7, in load_plugins
ModuleNotFoundError: No module named 'torch2trt.plugins'

请帮助我的白痴!

0 个答案:

没有答案