Windows10のインストール
seq2seq公式ウェブサイトチュートリアル
必要な環境:Python2.7またはPython3.5、TensorFlow 1.0
git clone https://github.com/google/seq2seq.git
cd seq2seq
# Install package and dependencies
pip install -e .
テスト
python -m unittest seq2seq.test.pipeline_test
問題が発生する
質問1
seq2seq / contrib / seq2seq / helper.pyがエラーを報告しました:bernoulli、categoricalをインポートできません、helper.pyを変更してください:
from tensorflow.python.ops.distributions import bernoulli
from tensorflow.python.ops.distributions import categorical
質問2
AttributeError:モジュール 'tensorflow.contrib.tfprof'には、
図に示すように属性 'model_analyzer'がありません:
TensorFlow 1.2.0を1.6.0に変更して、消えます...
質問3
AttributeError:モジュール 'tensorflow.python.platform.flags'に属性 '_FlagValues'がありません
解決策:seq2seq / test /pipeline_test.pyファイルを変更します。
質問4
変更後、PermissionError:[Errno 13] Permission denied: 'C:\ Users \ Computer \ AppData \ Local \ Temp \ tmph7wo8mp3'次
の図に示すように、アクセス許可エラーが表示されます。
Linuxのインストール
周囲
Ubuntu、TensorFlow1.6.0、python3.5
質問1
AttributeError:モジュール 'tensorflow.python.platform.flags'には属性がありません '_FlagValues'
如〉:
質問2
ImportError:「
yaml 」という名前のモジュールはcondaでyamlをインストールできませんでした、pipは成功しました
pip install pyyaml
質問3
ImportError:「matplotlib」という名前のモジュールがありません
pip install matplotlib