1
1

More than 1 year has passed since last update.

【Python】tqdmをインポートする際のエラー(警告)対処法

Last updated at Posted at 2021-12-25

環境

  • Microsoft Windows 10.0.22000.318(21H2)
  • conda 4.11.0
  • Python 3.8.12.final.0

現象

このようにインポートすると、

from tqdm import tqdm_notebook as tqdm

以下のように TqdmDeprecationWarning が出る。

TqdmDeprecationWarning: This function will be removed in tqdm==5.0.0
Please use `tqdm.notebook.tqdm` instead of `tqdm.tqdm_notebook`

対処法

このようにインポートすることで、警告が消える。

from tqdm.notebook import tqdm

参考

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