1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

import mglearn: Memory.__init__() got an unexpected keyword argument 'cachedir'

Posted at

環境

  • Windows11
  • Python3.11
  • Visual Studio Code

問題

 やったこと

Python3.11
import mglearn

 現れた警告

Python3.11
例外が発生しました: TypeError
Memory.__init__() got an unexpected keyword argument 'cachedir'

解決法

1.コマンドプロンプトでmglearnのファイルの場所を確認する。

cmd
python -m pip show mglearn

2.Githubにあるmglearnのファイルを確認する。下のリンクを参照。

3.更新差分を上書きする。
4.importできるようになる。

参考

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?