# How do I install it via chocolate package manager?

I am trying to install opencv via chocolate package manager for Windows. I get this error:

No directory specified, installing to C:\tools.
To install to a specific directory, pass '/InstallationPath:C:\path\to'. OpenCV will create its own folder within the directory you passed.
You will need to manually create an OPENCV_DIR environment variable then add %OPENCV_DIR%\bin to your PATH.
Alternately, you can rerun this and pass '/Environment:C:\path\to' Follow the OpenCV instructions on their website to figure out which directory you would want.
Progress: 29% - Saving 60.42 MB of 203.48 MB                                                                           ERROR: The remote file either doesn't exist, is unauthorized, or is forbidden for url 'https://github.com/opencv/opencv/releases/download/4.1.2/opencv-4.1.2-vc14_vc15.exe'. Exception calling "Read" with "3" argument(s): "The decryption operation failed, see inner exception."
This package is likely not broken for licensed users - see https://chocolatey.org/docs/features-private-cdn.
Environment Vars (like PATH) have changed. Close/reopen your shell to
see the changes (or in powershell/cmd.exe just type refreshenv).
The install of opencv was NOT successful.
Error while running 'C:\ProgramData\chocolatey\lib\OpenCV\tools\chocolateyinstall.ps1'.
See log for details.


welcome.

I don’t know how “chocolate” works but if anyone made a package, it seems to be unmaintained. that package is not official. it seems to just download the official package anyway so you gain very little, even if it was up to date.

the URL it tries to download does exist and gives me that file, when I open it in a regular web browser… so I don’t know why it failed in your terminal with chocolatey.

the chocolatey package index even says

Your use of the packages on this site means you understand they are not supported or guaranteed in any way. Due to the nature of a public repository and unreliability due to distribution rights, these packages should not be used as is for organizational purposes either.