我正在尝试在Windows机器上使用conda安装opencv。我正在运行以下命令:
, filterMenuInit: function (e) {
var multiCheck = this.thead.find("[data-field=" + e.field + "]").data("kendoFilterMultiCheck")
if (multiCheck) {
console.log("multicheck not null");
multiCheck.container.empty();
multiCheck.checkSource.sort({ field: e.field, dir: "asc" });
multiCheck.checkSource.data(multiCheck.checkSource.view().toJSON());
multiCheck.createCheckBoxes();
}
并收到以下错误:
conda install --channel https://conda.anaconda.org/menpo opencv
其他人似乎也有类似的问题(https://github.com/conda/conda/issues/4393)。我找到的解决方案之一是降级conda。我目前正在使用Solving environment: done
## Package Plan ##
environment location: C:\ProgramData\Anaconda2
added / updated specs:
- opencv
The following NEW packages will be INSTALLED:
opencv: 2.4.11-py27_1 menpo
Proceed ([y]/n)? y
Preparing transaction: done
Verifying transaction: done
Executing transaction: - WARNING conda.gateways.disk:exp_backoff_fn(49):
Uncaught backoff with errno EEXIST 17
failed
ERROR conda.core.link:_execute(502): An error occurred while installing
package 'None'.
IOError(13, 'Permission denied')
Attempting to roll back.
Rolling back transaction: done
IOError(13, 'Permission denied')
WindowsError(183, 'Cannot create a file when that file already exists')
,当我尝试使用conda 4.5.4
降级时,出现以下错误:
conda install conda=4.2
关于这个问题,我发现了以下类似的帖子:
conda update conda permission error
Anaconda : Update conda failed because permission error
但是给出的解决方案并没有解决我的问题。
答案 0 :(得分:0)
我还安装和使用OpenCV
库时遇到了问题。如果遇到这样的问题,可以尝试:
opencv
卸载conda remove --yes opencv
(如果您已安装,但无法正常运行)OpenCV
:pip install opencv-python
我认为这是来自opencv
渠道的Anaconda
的问题。我四个月前遇到了这个问题。问题可能会立即解决。
答案 1 :(得分:0)
我猜你没有用管理员权限运行这个命令!