【问题标题】:UnicodeDecodeError: can't install PyAutoGUI using pip installUnicodeDecodeError:无法使用 pip install 安装 PyAutoGUI
【发布时间】:2016-04-29 13:25:56
【问题描述】:

我尝试安装 xlib 相关的模块,例如 PyAutoGUI,但无法安装。

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

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

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

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

提前致谢

【问题讨论】:

    标签: python ubuntu terminal xlib kde


    【解决方案1】:

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

    请参阅问题 here

    为了降级这个模块,我在终端上运行了这一行:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-12-17
      • 2019-10-14
      • 1970-01-01
      • 1970-01-01
      • 2014-09-22
      • 2017-08-10
      • 2018-01-05
      • 2018-09-23
      相关资源
      最近更新 更多