Reputation: 15
Hi I am working in google co-lab. although i have installed this library utils but every time its giving error :
import numpy as np
import torch
from utils import utils # <-----
class SpeechDataGenerator():
ModuleNotFoundError: No module named 'utils'
what to do?
Upvotes: 0
Views: 2970
Reputation: 803
If you are talking about Python Utils package, then you should import it this way:
from python_utils import utils
Be sure that module was installed by executing this cell:
!pip install python_utils
Also it is recommended to restart runtime after module installation.
Upvotes: 1