Problems importing python-Xlib

前端 未结 8 712
暖寄归人
暖寄归人 2021-02-07 07:39

I installed a new module and it appears as if one of its dependencies was not already installed. The module is called Xlib.display. Here is the error message I received:

8条回答
  •  一向
    一向 (楼主)
    2021-02-07 08:16

    Please try.

    This shall install Xlib sudo apt-get install python-xlib

    Then you can check

    >>from Xlib.display import Display

    To install PyMouse if you want to control and capture mouse events please use:

    sudo easy_install https://github.com/pepijndevos/PyMouse/zipball/master

提交回复
热议问题