在Ubuntu 16.04 LTS中使用conda安装imutils

时间:2016-07-14 05:13:07

标签: python-3.x image-processing anaconda conda ubuntu-16.04

嗨,我正在从事计算机视觉项目,我在笔记本电脑中使用anaconda安装了python 3.5(Ubunut16.04 LTS)。你能告诉我,我如何在我的ubuntu 16.04 LTS中使用conda安装imutils。??????

4 个答案:

答案 0 :(得分:1)

你试过了吗?

pip install imutils

这应该安装imutils及其要求(numpy,astropy,scipy)。

文档为here

答案 1 :(得分:1)

你可以试试这个

conda install -c mlgill imutils

答案 2 :(得分:1)

在anaconda env中安装时出现错误(pip install imutils和conda install -c mlgill imutils)都无法正常工作。

所以是替代解决方案。

下载imutils,然后解压缩文件

import sys

import os

#PATH location of downloaded file example 
#PATH='/home/golu/Documents/ocr/imutils-master/'
sys.path.append(os.path.abspath(PATH))

#Now it works
import imutils 

答案 3 :(得分:0)

如果您有一个链接到另一个python的pip,您可能需要确保使用Anaconda pip安装imutils:

Wed Nov 01 21:57:17 :~/CS585/hw4/basic-motion-detection$ which -a pip
/usr/local/bin/pip
/Users/mona/anaconda/bin/pip
/usr/local/bin/pip
/usr/local/bin/pip
/Users/mona/anaconda/bin/pip
Wed Nov 01 21:58:03 :~/CS585/hw4/basic-motion-detection$ sudo /Users/mona/anaconda/bin/pip install imutils
Password:
The directory '/Users/mona/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/Users/mona/Library/Caches/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.
Collecting imutils
  Downloading imutils-0.4.3.tar.gz
Installing collected packages: imutils
  Running setup.py install for imutils ... done
Successfully installed imutils-0.4.3