I have an Ubuntu 16.04 OS with ROS kinetic.
When I open a terminal and type python it loads python 2.7, and as I try to import imutils it says it's not there.
Then, I tried to install it with pip install imutils, but it says: requirment already satisfied in bla/bla/python3.5/bla.
If I open the terminal and type python3, it loads Python 3.5, and when I try to import that lib, it complaints that it can't find cv2, and gives an address pointing to where the Python ROS package is located (Python 2.7).
Up to this point, it makes sense to me (I am aware of the .bashrc loading the ROS packages), but then, how can I install imutils in the Python version of ROS? I want to use the compatible imutils with my ROS Kinetic.
Your problem is that your
pipis set to Python 3.5.So, you can bypass it using
pip2instead:or
[NOTE]:
Check your
pips link to Python versions assignment:Then choose the desired Python version which assigned to these
pipor you can change thepips link address (a relevant post).