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?
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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.