Search code examples
pythonpython-3.xpippython-venv

ImportError: No module named can but it's there according to pip list


I have in python the error:

ImportError: No module named can

but the strange is that when I check it with pip list in the environment all these libraries are installed:

screenshot

As you can see in the screenshot, it tells me that the can library is not found, but when I check it with pip list


Solution

  • You are looking pip3 (python 3) list, but program working with python 2.7. You need to install the package with pip command.