Pip 安装程序错误

Pip installer error

我正在尝试安装 PyAutoGUI 但每次我尝试时都会收到错误消息

C:\WINDOWS\system32>C:\Users\nicho\AppData\Local\Programs\Python\Python35-32\Scripts\pip install PyAutoGUI
Collecting PyAutoGUI
  Using cached PyAutoGUI-0.9.33.zip
Collecting pymsgbox (from PyAutoGUI)
  Using cached PyMsgBox-1.0.3.zip
Collecting PyTweening>=1.0.1 (from PyAutoGUI)
  Using cached PyTweening-1.0.3.zip
Collecting Pillow (from PyAutoGUI)
  Using cached Pillow-3.1.1-cp35-none-win32.whl
Collecting pyscreeze (from PyAutoGUI)
  Using cached PyScreeze-0.1.8.zip
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\nicho\AppData\Local\Temp\pip-build-jt08_ns2\pyscreeze\setup.py", line 6, in <module>
        version=__import__('pyscreeze').__version__,
      File "c:\users\nicho\appdata\local\temp\pip-build-jt08_ns2\pyscreeze\pyscreeze\__init__.py", line 21, in <module>
        from PIL import Image
    ImportError: No module named 'PIL'

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\nicho\AppData\Local\Temp\pip-build-jt08_ns2\pyscreeze

谁能帮帮我?

您应该使用以下命令安装 Python Image Library(PIL)

sudo pip install PIL --allow-external PIL --allow-unverified PIL

检查 python 包的虚拟环境。例如,它在 pycharm 中非常用户友好,您可以在用完硬盘 space 之前测试软件包。