UnicodeDecodeError: can't install PyAutoGUI using pip install

UnicodeDecodeError: can't install PyAutoGUI using pip install

我试过安装xlib相关的模块,比如PyAutoGUI,我安装不了。

在终端上点击 pip install PyAutoGUI 后出现此消息:

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

这与终端在尝试执行使用 PyUserInput(另一个使用 xlib 的模块)的脚本时显示的消息相同。

有什么解决这个问题的建议吗?

提前致谢

问题已通过降级 Python-Xlib 包解决。

请参阅问题 here

要降级此模块,我 运行 在终端上这一行:

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