0
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 3 years have passed since last update.

plotly.py を使用したときに ModuleNotFoundError: No module named 'statsmodels'

Posted at

現象

plotly.py を使ってチャートを書こうとしたときに ModuleNotFoundError: No module named 'statsmodels' というエラーがでる

原因

plotly.py では依存するモジュールを必要最低限だけインストールするようになっており、利用するチャートの機能のよっては追加でモジュールをインストールする必要がある。例えば、散布図にトレンドラインを引くときには statsmodels パッケージが必要となるが自動ではインストールされないために別途インストールする必要がある

対応方法

statsmodels を別途インストールする

pip install statsmodels

参考

0
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
0
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?