You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like you pip installed imutils using python2's pip and so that's why python3 can't import it. You might try: sudo pip3 install imutils
Reacted by Adrian Rosebrock, lolz0r, Maurício Pena, Sarveshwaran Jayaraman, kboruff, Dragos Strugar, Lauri Elias, Keith Schmitt, Gayan Chinthaka, Kobee Raveendran and 21 more
Reacted by kboruff, KevinCarey114, Gayan Chinthaka, Devathi mahesh, Sreeram P, WesamAmarneh, Awadhesh-321, Bernal Rojas, Chethan Kumar R E, kol672 and 2 more
Proceed (y/n)?
answer yes(use Y key)
and then use sudo pip3 install --upgrade imutils
if you use python2 use pip insted pip3 for instalation and unistallation
Reacted by FariborzN, Sarveshwaran Jayaraman, Krzysztof Płaczek, Alain Kaiser, Pongsathon Somjai and Jishan Gahlot
Reacted by FariborzN and Wael Issa
Reacted by Krzysztof Płaczek, JainishShah and Alain Kaiser
Hi Adrian
Thank you. I executed the below. imutils is installed and I can see it in
Conda list from the Terminal. However, when I try to look for the package
in interpreter of Pycharm Edu, I don't see it.
conda install pip
pip install imutils
Regards,
Radhika
Hey @jrosebr1 . I am using Anaconda(spyder) for image processing and was trying the ball tracking blog from your site. I wanted to install imutils and used the command pip install imutils. I can see imutils in the list but when i try to run the program again , it shows 'no module found' again. Please me help with this.
Are you referring to the Spyder IDE? You'll need to set the project interpreter for Spyder. I don't use Spyder so I'm not sure how to do this, but for PyCharm take a look at this tutorial:
Hey guys I tried the uninstall method and re-installed from both within and outside the (cv) environment and still getting the "no module named imutils" error?
Any suggestions. I've never had this problem previously.
Hey @ANTZ314 -- my guess is that you may have accidentally installed and uninstalled (perhaps multiple times over) the imutils library from your system Python install and your Python virtual environment. Here's the fool-proof method:
@HongChow I've answered the question many times in the thread. You'll need to be more specific regarding the exact error you are getting, operating system, and Python environment.
I ran $ sudo pip install imutils
then $ python
python 3.5.2
import imutils
ImportError: No module names 'imutils'
if run $ sudo python
Python 2.7.12
import imutils
(imports ok)
I had installed imutils in Python2.7 (sudo pip install imutils) and was trying to use it in Python3 (thinking I was in Python2 - PEBKAC)
Firstly, I didn't notice that I was running python3 and then python2 when using sudo.
Secondly, I had an alias entry in my .bashrc file causing the confusion: alias python='/usr/bin/python3'
Thirdly, have to be aware when using sudo, that it runs in a different user environment. (Try $ env, then $ sudo env ). sudo is not just a security override.
Hi
Note : The version of python is determine in python Path but version of pip is in python path + Scripts
So if you like to install module by pip configure your environment variable and make the right way of pip you like to use and install your module with pip
Tks
It's installed on python3 perfectly ,
but when i installed it on python2 it gave me this error
The directory '/home/biohelwan/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. Requirement already satisfied: imutils in /usr/local/lib/python3.5/dist-packages (0.5.2)
Hey guys I tried the uninstall method and re-installed from both within and outside the (cv) environment and still getting the "no module named imutils" error?
Any suggestions. I've never had this problem previously.
Hello, did it finaly worked for you. I am having the same issue.
Activity
saschwarz commentedon Apr 12, 2017
It looks like you
pipinstalledimutilsusing python2'spipand so that's why python3 can't import it. You might try:sudo pip3 install imutilsFariborzN commentedon Oct 23, 2017
@for imutlis package
if you got error
uninstall package with
sudo pip3 uninstall imutilsand then you see this
Uninstalling imutils-0.4.3:
/usr/local/bin/range-detector
/usr/local/lib/python3.5/dist-packages/imutils-0.4.3.dist-info/DESCRIPTION.rst
/usr/local/lib/python3.5/dist-packages/imutils-0.4.3.dist-info/INSTALLER
/usr/local/lib/python3.5/dist-packages/imutils-0.4.3.dist-info/METADATA
/usr/local/lib/python3.5/dist-packages/imutils-0.4.3.dist-info/RECORD
/usr/local/lib/python3.5/dist-packages/imutils-0.4.3.dist-info/WHEEL
/usr/local/lib/python3.5/dist-packages/imutils-0.4.3.dist-info/metadata.json
/usr/local/lib/python3.5/dist-packages/imutils-0.4.3.dist-info/top_level.txt
/usr/local/lib/python3.5/dist-packages/imutils/init.py
/usr/local/lib/python3.5/dist-packages/imutils/pycache/init.cpython-35.pyc
/usr/local/lib/python3.5/dist-packages/imutils/pycache/contours.cpython-35.pyc
/usr/local/lib/python3.5/dist-packages/imutils/pycache/convenience.cpython-35.pyc
/usr/local/lib/python3.5/dist-packages/imutils/pycache/encodings.cpython-35.pyc
/usr/local/lib/python3.5/dist-packages/imutils/pycache/meta.cpython-35.pyc
/usr/local/lib/python3.5/dist-packages/imutils/pycache/object_detection.cpython-35.pyc
/usr/local/lib/python3.5/dist-packages/imutils/pycache/paths.cpython-35.pyc
/usr/local/lib/python3.5/dist-packages/imutils/pycache/perspective.cpython-35.pyc
/usr/local/lib/python3.5/dist-packages/imutils/contours.py
/usr/local/lib/python3.5/dist-packages/imutils/convenience.py
/usr/local/lib/python3.5/dist-packages/imutils/encodings.py
/usr/local/lib/python3.5/dist-packages/imutils/face_utils/init.py
/usr/local/lib/python3.5/dist-packages/imutils/face_utils/pycache/init.cpython-35.pyc
/usr/local/lib/python3.5/dist-packages/imutils/face_utils/pycache/facealigner.cpython-35.pyc
/usr/local/lib/python3.5/dist-packages/imutils/face_utils/pycache/helpers.cpython-35.pyc
/usr/local/lib/python3.5/dist-packages/imutils/face_utils/facealigner.py
/usr/local/lib/python3.5/dist-packages/imutils/face_utils/helpers.py
/usr/local/lib/python3.5/dist-packages/imutils/feature/init.py
/usr/local/lib/python3.5/dist-packages/imutils/feature/pycache/init.cpython-35.pyc
/usr/local/lib/python3.5/dist-packages/imutils/feature/pycache/factories.cpython-35.pyc
/usr/local/lib/python3.5/dist-packages/imutils/feature/pycache/gftt.cpython-35.pyc
/usr/local/lib/python3.5/dist-packages/imutils/feature/pycache/helpers.cpython-35.pyc
/usr/local/lib/python3.5/dist-packages/imutils/feature/factories.py
/usr/local/lib/python3.5/dist-packages/imutils/feature/gftt.py
/usr/local/lib/python3.5/dist-packages/imutils/feature/helpers.py
/usr/local/lib/python3.5/dist-packages/imutils/io/init.py
/usr/local/lib/python3.5/dist-packages/imutils/io/pycache/init.cpython-35.pyc
/usr/local/lib/python3.5/dist-packages/imutils/io/pycache/tempfile.cpython-35.pyc
/usr/local/lib/python3.5/dist-packages/imutils/io/tempfile.py
/usr/local/lib/python3.5/dist-packages/imutils/meta.py
/usr/local/lib/python3.5/dist-packages/imutils/object_detection.py
/usr/local/lib/python3.5/dist-packages/imutils/paths.py
/usr/local/lib/python3.5/dist-packages/imutils/perspective.py
/usr/local/lib/python3.5/dist-packages/imutils/video/init.py
/usr/local/lib/python3.5/dist-packages/imutils/video/pycache/init.cpython-35.pyc
/usr/local/lib/python3.5/dist-packages/imutils/video/pycache/count_frames.cpython-35.pyc
/usr/local/lib/python3.5/dist-packages/imutils/video/pycache/filevideostream.cpython-35.pyc
/usr/local/lib/python3.5/dist-packages/imutils/video/pycache/fps.cpython-35.pyc
/usr/local/lib/python3.5/dist-packages/imutils/video/pycache/pivideostream.cpython-35.pyc
/usr/local/lib/python3.5/dist-packages/imutils/video/pycache/videostream.cpython-35.pyc
/usr/local/lib/python3.5/dist-packages/imutils/video/pycache/webcamvideostream.cpython-35.pyc
/usr/local/lib/python3.5/dist-packages/imutils/video/count_frames.py
/usr/local/lib/python3.5/dist-packages/imutils/video/filevideostream.py
/usr/local/lib/python3.5/dist-packages/imutils/video/fps.py
/usr/local/lib/python3.5/dist-packages/imutils/video/pivideostream.py
/usr/local/lib/python3.5/dist-packages/imutils/video/videostream.py
/usr/local/lib/python3.5/dist-packages/imutils/video/webcamvideostream.py
and then ask you?
Proceed (y/n)?
answer yes(use Y key)
and then use
sudo pip3 install --upgrade imutilsif you use python2 use pip insted pip3 for instalation and unistallation
radhikatv commentedon Jan 22, 2018
I am trying to install imutils using :
conda install -c mlgill imutils
and I get the below error
Solving environment: failed
UnsatisfiableError: The following specifications were found to be in conflict:
jrosebr1 commentedon Jan 22, 2018
The
imutilslibrary is a non-conda package. You need to install viapip. See this thread for more details: #36radhikatv commentedon Jan 23, 2018
jrosebr1 commentedon Jan 23, 2018
Try setting the
Project Interpreterfrom your PyCharm settings to point to your conda install or associated Python virtual environment.iamjadhav commentedon Jan 30, 2018
Hey @jrosebr1 . I am using Anaconda(spyder) for image processing and was trying the ball tracking blog from your site. I wanted to install imutils and used the command pip install imutils. I can see imutils in the list but when i try to run the program again , it shows 'no module found' again. Please me help with this.
jrosebr1 commentedon Jan 30, 2018
Are you referring to the Spyder IDE? You'll need to set the project interpreter for Spyder. I don't use Spyder so I'm not sure how to do this, but for PyCharm take a look at this tutorial:
https://www.pyimagesearch.com/2015/08/17/the-perfect-computer-vision-environment-pycharm-opencv-and-python-virtual-environments/
Personally, I like executing my scripts via command line. If you're having problems executing via your IDE you can always revert to terminal.
iamjadhav commentedon Feb 2, 2018
Thanks ! Will use Pycharm now.
ANTZ314 commentedon Aug 15, 2018
Hey guys I tried the uninstall method and re-installed from both within and outside the (cv) environment and still getting the "no module named imutils" error?
Any suggestions. I've never had this problem previously.
jrosebr1 commentedon Aug 15, 2018
Hey @ANTZ314 -- my guess is that you may have accidentally installed and uninstalled (perhaps multiple times over) the
imutilslibrary from your system Python install and your Python virtual environment. Here's the fool-proof method:HongChow commentedon Aug 30, 2018
How to fix that? @jrosebr1
jrosebr1 commentedon Aug 30, 2018
@HongChow I've answered the question many times in the thread. You'll need to be more specific regarding the exact error you are getting, operating system, and Python environment.
KingfaLuis commentedon Sep 15, 2018
pip install imutils
markp64 commentedon Sep 16, 2018
I ran $ sudo pip install imutils
then $ python
python 3.5.2
if run $ sudo python
Python 2.7.12
I had installed imutils in Python2.7 (sudo pip install imutils) and was trying to use it in Python3 (thinking I was in Python2 - PEBKAC)
Firstly, I didn't notice that I was running python3 and then python2 when using sudo.
Secondly, I had an alias entry in my .bashrc file causing the confusion: alias python='/usr/bin/python3'
Thirdly, have to be aware when using sudo, that it runs in a different user environment. (Try $ env, then $ sudo env ). sudo is not just a security override.
elgarmi09gt commentedon Dec 15, 2018
Hi
Note : The version of python is determine in python Path but version of pip is in python path + Scripts
So if you like to install module by pip configure your environment variable and make the right way of pip you like to use and install your module with pip
Tks
ellensp commentedon Dec 26, 2018
you need to reactivate the virtual environment. ie do the following commands
source ~/.profile
workon cv
cd Smart-Security-Camera
python main.py
ayanasser commentedon Apr 11, 2019
Hi all ,
It's installed on python3 perfectly ,
but when i installed it on python2 it gave me this error
The directory '/home/biohelwan/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. Requirement already satisfied: imutils in /usr/local/lib/python3.5/dist-packages (0.5.2)jrosebr1 commentedon Apr 15, 2019
Delete your
.cachedirectory first and then retry:$ rm -rf ~/.cacheMathew3000 commentedon Jun 5, 2019
Hey, my solution was to install imutils without sudo. I hope it helps someone.
lamoboos223 commentedon Jul 12, 2019
sudo pip uninstall imutilssudo pip install imutilspython3import imutilsexit()and congrats it works perfectly
ajaytomgeorge commentedon Aug 2, 2019
most probably it is getting installed in global and not in local. Check if imutils is in this folder C:\Program Files\Python37\Lib\site-packages
copy paste imutils and imutils-0.5.2.dist-info folder in your local C:\usersid\AppData\Roaming\Python\Python37\site-packages
NB:AppData folder is hidden
or
pip install --user imutilsrvdrupal commentedon Feb 19, 2020
try this >> conda install -c conda-forge imutils
amrfodd commentedon Oct 11, 2020
import pip
pip.main(['install', 'imutils'])
in Jupyter Notebook
TrabelsiRim commentedon Nov 26, 2020
Python 2.7
pip install imutils
or
sudo pip install imutils (Raspberry)
Python 3
pip3 install imutils
or
sudo pip3 install imutils (Raspberry)
SalmanCode commentedon Jan 1, 2021
Hello, did it finaly worked for you. I am having the same issue.