python - 如何离线在Anaconda3中安装OpenCV3?

标签 python opencv installation anaconda menpo

我尝试使用以下命令在 Anaconda 中为 Python-3.5 安装 OpenCV

conda install -c https://conda.binstar.org/menpo opencv3

下载文件需要很长时间。看起来我的下载加速器在这方面做得更好。文件位置在

https://anaconda.org/menpo/opencv3/3.1.0/download/osx-64/opencv3-3.1.0-py35_0.tar.bz2

有没有办法在给定 opencv3-3.1.0-py35_0.tar.bz2 文件的情况下进行相同的离线安装?

最佳答案

如果你想直接安装包文件那么简单地做

conda install PATH_TO_FILE/opencv3-3.1.0-py35_0.tar.bz2

当然,文件的 PATH_TO_FILE 只是文件的路径。请注意此处 conda 安装 中的警告:

conda can also be called with a list of explicit conda package filenames (e.g. ./lxml-3.2.0-py27_0.tar.bz2). Using conda in this mode implies the --force option, and should likewise be used with great caution. Explicit filenames and package specifications cannot be mixed in a single command.

您还可以使用 --offline 参数来确保您没有连接到互联网。

关于python - 如何离线在Anaconda3中安装OpenCV3?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37110600/

相关文章:

python - lambda 与列表理解性能

python - Pytorch运行时错误: The size of tensor a (4) must match the size of tensor b (3) at non-singleton dimension 0

javascript - 在 python django 中通过 url 发送数组

java - 使用 Opencv Android 实现分水岭分割时出错

c++ - 是否可以创建和使用 MatIterator 数组?

css - 如何手动安装 Zurb Foundation?

installation - wix - 保存登录名\密码以连接到 MSSQL Server

Python计数器不识别字典

python - 我对 openCV 卡尔曼滤波器的使用很接近,但没有用

android - 在 Android 上安装 CouchDB