title: IDLE and Teminal unable to import an installed module
body: <p>I've been trying to import discord.py into my code for quite some time now and it hasn't been working even though it is definitely installed, none of the fixing methods from other similar questions worked either.</p>
  <p>Terminal and IDLE unable to import discord.py</p>
  <pre><code>Python 3.8.3 (v3.8.3:6f8c8320e9, May 13 2020, 16:29:34) 
  [Clang 6.0 (clang-600.0.57)] on darwin
  Type &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information.
  &gt;&gt;&gt; import discord.py
  Traceback (most recent call last):
    File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt;
  ModuleNotFoundError: No module named 'discord.py'
  &gt;&gt;&gt; 
  </code></pre>
  <pre><code>MacBook-Pro:~ pyaesonemyo$ python
  Python 2.7.10 (default, Feb  7 2017, 00:08:15) 
  [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.34)] on darwin
  Type &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information.
  &gt;&gt;&gt; import discord.py
  Traceback (most recent call last):
    File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt;
  ImportError: No module named discord.py
  
  </code></pre>
  <p>Proof that discord.py is installed</p>
  <pre><code>MacBook-Pro:~ pyaesonemyo$ pip install discord.py
  Requirement already satisfied: discord.py in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (1.3.3)
  Requirement already satisfied: websockets!=7.0,!=8.0,!=8.0.1,&lt;9.0,&gt;=6.0 in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from discord.py) (8.1)
  Requirement already satisfied: aiohttp&lt;3.7.0,&gt;=3.6.0 in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from discord.py) (3.6.2)
  Requirement already satisfied: multidict&lt;5.0,&gt;=4.5 in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from aiohttp&lt;3.7.0,&gt;=3.6.0-&gt;discord.py) (4.7.6)
  Requirement already satisfied: attrs&gt;=17.3.0 in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from aiohttp&lt;3.7.0,&gt;=3.6.0-&gt;discord.py) (19.3.0)
  Requirement already satisfied: yarl&lt;2.0,&gt;=1.0 in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from aiohttp&lt;3.7.0,&gt;=3.6.0-&gt;discord.py) (1.4.2)
  Requirement already satisfied: chardet&lt;4.0,&gt;=2.0 in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from aiohttp&lt;3.7.0,&gt;=3.6.0-&gt;discord.py) (3.0.4)
  Requirement already satisfied: async-timeout&lt;4.0,&gt;=3.0 in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from aiohttp&lt;3.7.0,&gt;=3.6.0-&gt;discord.py) (3.0.1)
  Requirement already satisfied: idna&gt;=2.0 in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from yarl&lt;2.0,&gt;=1.0-&gt;aiohttp&lt;3.7.0,&gt;=3.6.0-&gt;discord.py) (2.9)
  
  </code></pre>
  <pre><code>MacBook-Pro:~ pyaesonemyo$ pip show discord.py
  Name: discord.py
  Version: 1.3.3
  Summary: A Python wrapper for the Discord API
  Home-page: https://github.com/Rapptz/discord.py
  Author: Rapptz
  Author-email: None
  License: MIT
  Location: /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages
  Requires: websockets, aiohttp
  Required-by: 
  MacBook-Pro:~ pyaesonemyo$ 
  </code></pre>
  <p>My sys.path:</p>
  <pre><code>MacBook-Pro:~ pyaesonemyo$ python3
  Python 3.8.3 (v3.8.3:6f8c8320e9, May 13 2020, 16:29:34) 
  [Clang 6.0 (clang-600.0.57)] on darwin
  Type &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information.
  &gt;&gt;&gt; import sys
  &gt;&gt;&gt; sys.path
  ['', '/Library/Frameworks/Python.framework/Versions/3.8/lib/python38.zip', '/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8', '/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/lib-dynload', '/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages']
  &gt;&gt;&gt; 
  </code></pre>
  <p>I've also tried out multiple popular fixes and still failed.</p>
  <pre><code>MacBook-Pro:~ pyaesonemyo$ sudo chmod -R ugo+rX /lib/python3.8/site-packages/
  chmod: /lib/python3.8/site-packages/: No such file or directory
  </code></pre>
  <pre><code>MacBook-Pro:~ pyaesonemyo$ python3 -m pip install discord.py
  Requirement already satisfied: discord.py in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (1.3.3)
  Requirement already satisfied: aiohttp&lt;3.7.0,&gt;=3.6.0 in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from discord.py) (3.6.2)
  Requirement already satisfied: websockets!=7.0,!=8.0,!=8.0.1,&lt;9.0,&gt;=6.0 in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from discord.py) (8.1)
  Requirement already satisfied: chardet&lt;4.0,&gt;=2.0 in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from aiohttp&lt;3.7.0,&gt;=3.6.0-&gt;discord.py) (3.0.4)
  Requirement already satisfied: attrs&gt;=17.3.0 in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from aiohttp&lt;3.7.0,&gt;=3.6.0-&gt;discord.py) (19.3.0)
  Requirement already satisfied: async-timeout&lt;4.0,&gt;=3.0 in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from aiohttp&lt;3.7.0,&gt;=3.6.0-&gt;discord.py) (3.0.1)
  Requirement already satisfied: yarl&lt;2.0,&gt;=1.0 in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from aiohttp&lt;3.7.0,&gt;=3.6.0-&gt;discord.py) (1.4.2)
  Requirement already satisfied: multidict&lt;5.0,&gt;=4.5 in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from aiohttp&lt;3.7.0,&gt;=3.6.0-&gt;discord.py) (4.7.6)
  Requirement already satisfied: idna&gt;=2.0 in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from yarl&lt;2.0,&gt;=1.0-&gt;aiohttp&lt;3.7.0,&gt;=3.6.0-&gt;discord.py) (2.9)
  </code></pre>
  <p>NOTE: Using <code>python -m pip install &lt;package&gt;</code> without python3 gives out this error</p>
  <pre><code>MacBook-Pro:~ pyaesonemyo$ python -m pip install discord.py
  DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
  Defaulting to user installation because normal site-packages is not writeable
  Collecting discord.py
    Using cached discord.py-0.16.12.tar.gz (414 kB)
  Collecting aiohttp&lt;1.1.0,&gt;=1.0.0
    Using cached aiohttp-1.0.5.tar.gz (499 kB)
      ERROR: Command errored out with exit status 1:
       command: /usr/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '&quot;'&quot;'/private/var/folders/tk/mbdd48gd5614t0l0j0xztrdr0000gn/T/pip-install-mbx8EX/aiohttp/setup.py'&quot;'&quot;'; __file__='&quot;'&quot;'/private/var/folders/tk/mbdd48gd5614t0l0j0xztrdr0000gn/T/pip-install-mbx8EX/aiohttp/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 /private/var/folders/tk/mbdd48gd5614t0l0j0xztrdr0000gn/T/pip-pip-egg-info-3n4ucd
           cwd: /private/var/folders/tk/mbdd48gd5614t0l0j0xztrdr0000gn/T/pip-install-mbx8EX/aiohttp/
      Complete output (5 lines):
      Traceback (most recent call last):
        File &quot;&lt;string&gt;&quot;, line 1, in &lt;module&gt;
        File &quot;/private/var/folders/tk/mbdd48gd5614t0l0j0xztrdr0000gn/T/pip-install-mbx8EX/aiohttp/setup.py&quot;, line 60, in &lt;module&gt;
          raise RuntimeError(&quot;aiohttp requires Python 3.4.2+&quot;)
      RuntimeError: aiohttp requires Python 3.4.2+
      ----------------------------------------
  ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
  </code></pre>