LoginSignup
1
0

More than 3 years have passed since last update.

python scheduleライブラリでimport errorになる時に確認すること

Posted at

schedule ライブラリでimport errorになる時に確認すること

scheduleはpythonで関数を定期実行する際に活躍する便利なライブラリです。

しかし、下のようなエラーが発生することがあります。

AttributeError: module 'schedule' has no attribute 'every'

確認すること

scheduleがインストールできている確認する。

pip freeze

pythonファイルがschedule.pyになっていない事を確認する。

Screen Shot 2019-05-22 at 08.13.50.png

python ファイルがschedule.pyになっているとimoprtエラーが起こるみたい。
参考:https://github.com/dbader/schedule/issues/37

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