我尝试安装与 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
关于python - Unicode解码错误: can't install PyAutoGUI using pip install,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34955284/