Pip安装程序错误

时间:2016-02-21 19:49:21

标签: python pip pyautogui

我正在尝试安装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

任何人都可以帮助我吗?

2 个答案:

答案 0 :(得分:0)

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

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

答案 1 :(得分:0)

查看python包的虚拟环境。例如,它在pycharm中非常友好,您可以在耗尽硬盘空间之前测试包。