LoginSignup
1
1

More than 3 years have passed since last update.

SageMakerでOptunaをinstallできない

Last updated at Posted at 2020-05-04

はじめに

SageMakerでOptunaをinstallしようとしたらつまづいた話。
1時間くらいかけて解消できたので備忘メモとして残しておきます。

環境

  • AWS SageMaker
  • env: tensorflow_p36

やりたかったこと

  • optunaをpip installだか、conda installして、SageMakerでパラメータチューニングしたい。

エラー内容

Notebook上で !pip install optuna を実行すると、以下のようなメッセージが表示される。

AttributeError: module 'enum' has no attribute 'IntFlag'

解決方法

enum34をインストールしたら解消されました。
- Terminalで pip uninstall enum34
- Notebookで !pip install optuna

参考記事

以下の記事が参考になりました。ありがとうございます。
https://blog.goo.ne.jp/field_light/e/1d6e42b4e9322b5f5546ca89a4e7a7a6-

1
1
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
1