Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: No module named 'utils' #1

Open
pech416 opened this issue Oct 14, 2020 · 1 comment
Open

ImportError: No module named 'utils' #1

pech416 opened this issue Oct 14, 2020 · 1 comment

Comments

@pech416
Copy link

pech416 commented Oct 14, 2020

Traceback (most recent call last):
File "tools/create_tf_record.py", line 4, in
import utils
ImportError: No module named 'utils'

when we type the command python tools/create_tf_record.py -input_dir='f:/speech' into pycharm, it report the above.
Could you tell me how to solve it?

@xi-loong
Copy link
Owner

xi-loong commented Mar 17, 2021

sorry for answer late, you can set PYTHONPATH with project dir。exmaple: my project root is E:\speech\speech-to-text-wavenet2
windows

set PYTHONPATH=E:\speech\speech-to-text-wavenet2
python tools/create_tf_record.py -input_dir='f:/speech'

Liunx

export PYTHONPATH=/mnt/f/speech/speech-to-text-wavenet2
python tools/create_tf_record.py -input_dir='f:/speech'

hope it can help you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants