LoginSignup
1
0

More than 3 years have passed since last update.

ML-agents(Release3) で「ImportError: DLL load failed: 指定されたモジュールが見つかりません。」というエラーが出る場合の対処

Posted at

概要

ML-agentsのRelease3をインストールした後に
importError: DLL load failed
というエラーが出る原因は、TensorFlowのバージョン問題です。

環境

  • Windows10 64bit
  • Python 3.6.1 (Anaconda 5.3.0)
  • Unity 2019.1.0f2

起きたこと

https://github.com/Unity-Technologies/ml-agents/blob/release_3_docs/docs/Readme.md
上記ページに従い、
Anaconda PromptでML-agentsをpip3でインストール後に
mlagents-learn --help
を実行した後に、下記のようなエラーが出る。

ImportError: DLL load failed: 指定されたモジュールが見つかりません。

原因

詳細な原因は不明。
TensorFlowバージョン2.1.1と実行環境(WindowsかAnacondaか)との相性が悪かったと思われる。

対策

TensorFlowバージョンを2.0まで落とす。
そうすると、正常に動作しました。
(--helpも、実際の学習動作も)

参考サイト

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0