title: No module named '_ctypes'
body: <p>I'm trying to install pyautogui, but pip keeps throwing errors. How to fix it? I've tried installing libffi library. Here is some code:</p>
  <pre><code>python3 -m pip install pyautogui
  Defaulting to user installation because normal site-packages is not writeable
  Collecting pyautogui
    Using cached PyAutoGUI-0.9.50.tar.gz (57 kB)
      ERROR: Command errored out with exit status 1:
       command: /usr/local/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '&quot;'&quot;'/tmp/pip-install-sxm4ewnq/pyautogui/setup.py'&quot;'&quot;'; __file__='&quot;'&quot;'/tmp/pip-install-sxm4ewnq/pyautogui/setup.py'&quot;'&quot;';f=getattr(tokenize, '&quot;'&quot;'open'&quot;'&quot;', open)(__file__);code=f.read().replace('&quot;'&quot;'\r\n'&quot;'&quot;', '&quot;'&quot;'\n'&quot;'&quot;');f.close();exec(compile(code, __file__, '&quot;'&quot;'exec'&quot;'&quot;'))' egg_info --egg-base /tmp/pip-pip-egg-info-85ugzov6
           cwd: /tmp/pip-install-sxm4ewnq/pyautogui/
      Complete output (11 lines):
      Traceback (most recent call last):
        File &quot;&lt;string&gt;&quot;, line 1, in &lt;module&gt;
        File &quot;/usr/local/lib/python3.8/site-packages/setuptools/__init__.py&quot;, line 19, in &lt;module&gt;
          from setuptools.dist import Distribution
        File &quot;/usr/local/lib/python3.8/site-packages/setuptools/dist.py&quot;, line 34, in &lt;module&gt;
          from setuptools import windows_support
        File &quot;/usr/local/lib/python3.8/site-packages/setuptools/windows_support.py&quot;, line 2, in &lt;module&gt;
          import ctypes
        File &quot;/usr/local/lib/python3.8/ctypes/__init__.py&quot;, line 7, in &lt;module&gt;
          from _ctypes import Union, Structure, Array
      ModuleNotFoundError: No module named '_ctypes'
      ----------------------------------------
  ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
  </code></pre>
  <p>That's from python REPL</p>
  <pre><code>&gt;&gt;&gt; sys.path
  ['', '/home/walenty/apps/Python-3.8.5/Modules/_ctypes', '/usr/local/lib/python38.zip', '/usr/local/lib/python3.8', '/usr/local/lib/python3.8/lib-dynload', '/home/walenty/.local/lib/python3.8/site-packages', '/usr/local/lib/python3.8/site-packages']
  &gt;&gt;&gt; import _ctypes
  Traceback (most recent call last):
    File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt;
  ModuleNotFoundError: No module named '_ctypes'
  
  </code></pre>