尝试导入库,但显示错误。
!pip install opencv-contrib-python
Collecting opencv-contrib-python Using cached https://files.pythonhosted.org/packages/00/a3/dfdbd5db6ba7f5b5a34d969c7508866c48826c61eb5e2c913d27f8784ff4/opencv_contrib_python-4.1.1.26-cp37-cp37m-win_amd64.whl
Requirement already satisfied: numpy>=1.14.5 in c:\users\admin\anaconda3\lib\site-packages (from opencv-contrib-python) (1.15.4)
Installing collected packages: opencv-contrib-python
Could not install packages due to an EnvironmentError: [WinError 5] Access is denied: 'C:\\Users\\Admin\\Anaconda3\\Lib\\site-packages\\cv2\\cv2.cp37-win_amd64.pyd'
Consider using the `--user` option or check the permissions.
指导我。
答案 0 :(得分:0)
由于要尝试安装到admin
文件夹中,因此需要打开具有管理特权的提示。另外,如果您正在使用Anaconda,我建议使用conda
软件包管理器。