title: pyautogui / pyscreeze can't find pillow even though it is successfully installed into the same package folder and I can import it
body: <p>I'm following a course called Automate the Boring Stuff, and I'm on the last part about pyautogui and pillow. I can import pyautogui and pillow successfully and I can use the keystroke functions of pyautogui but if I try to run a function in pyautogui that involves pillow it gives me this error. The function I'm trying to run is <code>pyautogui.screenshot()</code></p>
  
  <pre><code>File "&lt;input&gt;", line 1, in &lt;module&gt;
    File "C:\Users\offic\PycharmProjects\test\venv\Lib\site-packages\pyscreeze\__init__.py", line 134, in wrapper
      raise PyScreezeException('The Pillow package is required to use this function.')
  pyscreeze.PyScreezeException: The Pillow package is required to use this function.
  
  </code></pre>
  
  <p>and here is the code in pyscreeze that determines if pillow is there</p>
  
  <pre><code>try:
      from PIL import Image
      from PIL import ImageOps
      from PIL import ImageDraw
      if sys.platform == 'win32': # TODO - Pillow now supports ImageGrab on macOS.
          from PIL import ImageGrab
      _PILLOW_UNAVAILABLE = False
  except ImportError:
      # We ignore this because failures due to Pillow not being installed
      # should only happen when the functions that specifically depend on
      # Pillow are called. The main use case is when PyAutoGUI imports
      # PyScreeze, but Pillow isn't installed because the user is running
      # some platform/version of Python that Pillow doesn't support, then
      # importing PyAutoGUI should not automatically fail because it
      # imports PyScreeze.
      # So we have a `pass` statement here since a failure to import
      # Pillow shouldn't crash PyScreeze.
      _PILLOW_UNAVAILABLE = True
  </code></pre>
  
  <pre><code>def requiresPillow(wrappedFunction):
      """
      A decorator that marks a function as requiring Pillow to be installed.
      This raises PyScreezeException if Pillow wasn't imported.
      """
      @functools.wraps(wrappedFunction)
      def wrapper(*args, **kwargs):
          if _PILLOW_UNAVAILABLE:
              raise PyScreezeException('The Pillow package is required to use this function.')
          return wrappedFunction(*args, **kwargs)
      return wrapper
  </code></pre>
  
  <p>if I try to just type 'from PIL import Image' it gives this error</p>
  
  <pre><code>Traceback (most recent call last):
    File "&lt;input&gt;", line 1, in &lt;module&gt;
    File "C:\Program Files\JetBrains\PyCharm Edu 2019.1\helpers\pydev\_pydev_bundle\pydev_import_hook.py", line 21, in do_import
      module = self._system_import(name, *args, **kwargs)
    File "C:\Users\offic\PycharmProjects\test\venv\Lib\site-packages\PIL\Image.py", line 93, in &lt;module&gt;
      from . import _imaging as core
  ImportError: cannot import name '_imaging' from 'PIL' (C:\Users\offic\PycharmProjects\test\venv\Lib\site-packages\PIL\__init__.py)
  </code></pre>
  
  <p>and this is when I installed Pillow</p>
  
  <pre><code>C:\Users\offic&gt;py -m pip install --user Pillow
  Requirement already satisfied: Pillow in c:\users\offic\pycharmprojects\test\venv\lib\site-packages (7.1.1)
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/wXooK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wXooK.png" alt="this is what pillow looks like in my package directory"></a>
  this is what pillow looks like in my package directory</p>
  
  <p>and pyscreeze says it's supposedly satisfied with the install of Pillow</p>
  
  <pre><code>C:\Users\offic&gt;py -m pip install --user pyscreeze
  Requirement already satisfied: pyscreeze in c:\users\offic\pycharmprojects\test\venv\lib\site-packages (0.1.26)
  Requirement already satisfied: Pillow&gt;=5.2.0 in c:\users\offic\pycharmprojects\test\venv\lib\site-packages (from pyscreeze) (7.1.1)
  </code></pre>
  
  <p>I don't know what is going on because I've had almost no problems with installing packages before and it seems to be in the right location and up to date. Please help me!</p>