You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "/Users/segavvy/Documents/deep-learning-from-scratch-2/ch08/train.py", line 12, in <module>
from ch07.peeky_seq2seq import PeekySeq2seq
File "../ch07/peeky_seq2seq.py", line 5, in <module>
from seq2seq import Seq2seq, Encoder
ModuleNotFoundError: No module named 'seq2seq'
ch08/train.pyでModuleNotFoundErrorが起きます。
インポート対象のch07/peeky_seq2seq.pyは、中でさらに同じ場所にあるseq2seq.pyをインポートしようとしますが、ch07にはパスが通っていないためch07内を探さないことが原因のようです。
ch08/train.pyの先頭部分に
sys.path.append('../ch07’)
を追加することで回避できます。(ベストな直し方かどうかはわかりませんが)The text was updated successfully, but these errors were encountered: