0

I am trying to install PyAutoGUI but every time i try i get the error message

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

Can anyone help me?

4

2 回答 2

0

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

于 2016-02-21T20:34:29.917 回答
0

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

sudo pip install PIL --allow-external PIL --allow-unverified PIL
于 2016-02-21T19:51:48.170 回答