Solvedimutils ImportError: No module named imutils

Hello,
I installed imutils in Ubuntu 16.04 using the next command:

sudo pip apt-get install imutils

I ran "pip list" and show me that imutils (0.4.3) is already installed, but when I tried to use it in a python script:

import imutils

show me the next error:

Traceback (most recent call last):
File "/home/epic/Documentos/python test/OpenCV/curso/test2.py", line 3, in
import imutils
ImportError: No module named imutils

any idea what is wrong?

SALUDOS!!!!!!!!!!

22 Answers

✔️Accepted Answer

Hm, I think you have an issue with your command. This is not how you install a package with pip:

$ sudo pip apt-get install imutils

You should be doing:

$ sudo pip install imutils

To install globally on your system.

If you are using virtual environments, don't forget the workon command:

$ workon your_env_name
$ pip install imutils

Other Answers:

try using this command.
I faced the same situation and this worked.
pip install –upgrade imutils (pip3 if python3)

Related Issues:

42
imutils No module named 'imutils' after pip install
It looks like you pip installed imutils using python2's pip and so that's why python3 can't import i...
8
imutils 'NoneType' object has no attribute 'shape'
When posting code please format it using pre HTML tags or tilde tags Otherwise your code is unreadab...
6
imutils ImportError: No module named imutils
Hm I think you have an issue with your command Hello ...