Search code examples
pythonpython-3.xpython-module

Why do I get "ModuleNotFoundError: No module named 'YEETER'" when importing a module in python?


I installed the module "YEETER" with:

pip install YEETER

When I try to import this module (using import YEETER), I get the following error:

ModuleNotFoundError: No module named 'YEETER'

I am using Python 3.7.

What am I doing wrong?


Solution

  • pip install will install packages for python 2. As you are using python 3, you have to install packages with pip3 install.

    Or use python 2 to execute your code that is importing modules for python 2.