如何在Windows 10上的Python 3中修复notify2'dbus'错误

时间:2019-05-11 10:54:53

标签: python python-3.x windows anaconda dbus

 import notify2 
 notify2.Notification('title')

我在Windows 10上将蟒蛇3与anaconda一起使用时,它正在显示

Traceback (most recent call last):
  File "E:\Python Scripting\Upwork RSS Feed Notification\upwork_rss\src\py_s.py", line 56, in <module>
    import notify2
  File "C:\ProgramData\Anaconda3\lib\site-packages\notify2.py", line 39, in <module>
    import dbus
ModuleNotFoundError: No module named 'dbus'

我如何解决此问题?

1 个答案:

答案 0 :(得分:1)

安装dbus
 pip install dbus-python