Problems importing python-Xlib

前端 未结 8 711
暖寄归人
暖寄归人 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:30

    Below worked for me!

    pip install python3_xlib
    

    I have also used pyuserinput for automation which requires this.

    0 讨论(0)
  • 2021-02-07 08:36

    I don't think the Xlib library works in Python 3.

    Source:

    Requirements

    The Python X Library requires Python 1.5.2 or newer. It has been tested to various extents with Python 1.5.2 and 2.0 through 2.6.

    0 讨论(0)
提交回复
热议问题