【PyTorch】ModuleNotFoundError: No module named ‘torchnet’
问题描述
Traceback (most recent call last):
File "SketchyDatabase\train.py", line 3, in <module>
from models.TripletEmbedding import TripletNet
File "SketchyDatabase\models\TripletEmbedding.py", line 7, in <module>
from torchnet.meter import AverageValueMeter
ModuleNotFoundError: No module named 'torchnet'
原因分析
torchnet
模块未安装在Python环境中。
解决方案
pip install torchnet
标签:named,TripletEmbedding,No,torchnet,module,ModuleNotFoundError
From: https://blog.csdn.net/qq_34988204/article/details/144632086