无法安装pip install pyautogui,错误代码1

时间:2015-12-29 00:55:14

标签: python python-2.7 pip

pip install <package>命令对我有用,我尝试在我的设置中安装selenium包,但是当我尝试安装pyautogui时,它无效。截图如下。这可能有什么问题:

WORKS enter image description here

无法使用,错误:

  

←[31m命令“python setup.py egg_info”失败,错误代码1在c:\ users \ homepc \ appdata \ local \ temp \ pip-build-q631su \ pyscreeze←[0m

enter image description here

2 个答案:

答案 0 :(得分:12)

错误消息就像它读取的那样。您需要Pillow库的PIL端口作为依赖项:

pip install Pillow # a popular port of the Python Imaging Library, which is needed here

答案 1 :(得分:0)

我通过工作站的控制台终端窗口使用命令pip3 install pyautogui解决了这个问题。错误的原因是在此之前我尝试使用SSH终端窗口远程安装软件。 SSH终端窗口环境不支持窗口系统。

相关问题