Search code examples
pythonubuntuterminalxlibkde-plasma

UnicodeDecodeError: can't install PyAutoGUI using pip install


I tried to install xlib-related module like PyAutoGUI I can't be able to install it.

After hiting pip install PyAutoGUI on terminal this message appears:

UnicodeDecodeError: 'utf-8' codec can't decode byte 0x9e in position 0: invalid start byte

It's the same message that terminal shows me when trying to execute a script that use PyUserInput (another module that use xlib).

Any suggestion to solve this issue?

Thanks in advance


Solution

  • Problem was solved by downgrading Python-Xlib package.

    See issue here.

    For downgrade this module I ran on Terminal this line:

    apt-get install python-xlib=0.14+20091101-1ubuntu2