Tuesday, December 15, 2020

No module named imutils.pespective after pip installing

/python/Script/


 1) Install imutils

pip install imutils

2) If imutils is already installed, check the installation path.

Requirement already satisfied: imutils in /usr/local/lib/python3.5/dist-packages

3) When I ran python program, I ran into following error:

ImportError: No module named imutils.video

In my case, imutils was only installed under /usr/local/lib/python3.5/dist-packages path, once I copied this folder to /usr/local/lib/python2.7/dist-packages, it worked! Hope this is helpful.

No comments:

Post a Comment

Python Files and Exceptions: Unit 9

  Table of contents Reading from a File Reading an Entire File File Paths Reading Line by Line Making a List of Lines from a File Working wi...