繁体   English   中英

在 Ubuntu 16.04 LTS 中使用 conda 安装 imutils

[英]Install imutils using conda in Ubuntu 16.04 LTS

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

你有没有试过:

pip install imutils

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

文档在这里

你可以试试这个

conda install -c mlgill imutils

我在 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 

如果您有一个 pip 链接到另一个 python,您可能需要确保使用 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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM