python - Unicode解码错误: can't install PyAutoGUI using pip install

标签 python ubuntu terminal xlib kde-plasma

我尝试安装与 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/

相关文章:

python : Count frequences in dictionary

ubuntu - 如何在 GNUPlot 图中的每个条上给出文本

python - 带有python "-c"标志的linux命令管道

java - 如何在mac上准确设置和使用环境变量

python - 使用 urllib2 read() 时出现 HTTPError

python - 使用 Selenium Actionchains 时指定 Actions 之间的等待时间

python - Numpy:设置 false 左边的任何东西都是假的

amazon-web-services - 存储库...没有发布文件(Maxmind)

php - 使用mac终端写PHP(保存文件)

linux - 我在 bash shell 中的 "if"语句有什么问题