python - 如何修复 Windows 10 上 Python 3 中的 notification2 'dbus' 错误

标签 python python-3.x windows anaconda dbus

 import notify2 
 notify2.Notification('title')

我在 Windows 10 上使用 Python 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'

我该如何解决这个问题?

最佳答案

安装dbus为

 pip install dbus-python

关于python - 如何修复 Windows 10 上 Python 3 中的 notification2 'dbus' 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56089625/

相关文章:

python - 用自定义消息替换错误

python - 在 Python 3 中使用 hashlib 计算文件的 md5 摘要

python 3 urllib 和 http.client - 无法打开调试消息

python-3.x - QPainter.drawText 丑陋的字体渲染

windows - Windows 上的 Clojure IDE?

windows - Delphi 和 __uuidof

php - 使用浏览器中的 shell_exec 将参数从 php 传递到 python

python - 如何将具有对象 dtype 的 Numpy 二维数组转换为常规的二维 float 组

python - 设置pyqt qtablewidget horizo​​ntal header lable editable

.net - 独特的控制标识