在windows上使用conda安装opencv时出现EEXIST 17错误
我正在尝试在windows计算机上使用conda安装opencv。我正在运行以下命令:在windows上使用conda安装opencv时出现EEXIST 17错误,opencv,conda,Opencv,Conda,我正在尝试在windows计算机上使用conda安装opencv。我正在运行以下命令: conda install --channel https://conda.anaconda.org/menpo opencv 并获取以下错误: Solving environment: done ## Package Plan ## environment location: C:\ProgramData\Anaconda2 added / updated specs: - opencv The f
conda install --channel https://conda.anaconda.org/menpo opencv
并获取以下错误:
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')
The following packages will be DOWNGRADED:
conda: 4.5.4-py27_0 --> 4.2.16-py27_0
conda-build: 3.10.5-py27_0 --> 3.9.2-py27_0
Proceed ([y]/n)? y
Preparing transaction: done
Verifying transaction: done
Executing transaction: failed
ERROR conda.core.link:_execute(502): An error occurred while uninstalling
package 'defaults::conda-build-3.10.5-py27_0'.
WindowsError(5, 'Access is denied')
Attempting to roll back.
Rolling back transaction: done
WindowsError(5, 'Access is denied')
其他人似乎也有类似的问题()。我找到的解决办法之一是降低康达的评级。我当前使用的是conda 4.5.4
,当我尝试使用conda安装conda=4.2
降级时,我得到以下错误:
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')
The following packages will be DOWNGRADED:
conda: 4.5.4-py27_0 --> 4.2.16-py27_0
conda-build: 3.10.5-py27_0 --> 3.9.2-py27_0
Proceed ([y]/n)? y
Preparing transaction: done
Verifying transaction: done
Executing transaction: failed
ERROR conda.core.link:_execute(502): An error occurred while uninstalling
package 'defaults::conda-build-3.10.5-py27_0'.
WindowsError(5, 'Access is denied')
Attempting to roll back.
Rolling back transaction: done
WindowsError(5, 'Access is denied')
关于这个问题,我发现了以下类似的帖子:
但是给出的解决方案并不能解决我的问题。我在安装和使用
OpenCV
库时也遇到了问题。如果您有这样的问题,您可以尝试:
opencv
,方法是:conda-remove--yes-opencv
(如果您安装了,但它不能正常工作)OpenCV
:pip安装OpenCV python我认为这是来自
Anaconda
频道的opencv
的问题。四个月前我遇到了这个问题。这个问题可能现在就解决了 我猜您没有以管理员权限运行此命令!可能是您的问题与此相关(清空CONDA_垃圾箱的问题)。我也遇到了类似的错误,我最终通过创建一个新环境并安装我想要的包(py xgboost
)解决了此问题相反,我必须创造一个新的环境,这很有帮助@罗伯特