The primary cause of this linker error is due to deffective setup.py script, which produces nonsensical values to the compiler. In this case it appears that setup.py still managed to generate some of the settings correctly. Either the setup.py script needs to be fixed, or it can be ignored competely by presetting the correct values to respective environment variables, passing them directly to the MSVC toolchain and bypassing setuptools. Specific values will differ based on location of your libraries, but will generally look something like this:
| pthreads | OpenCV | LibJPEG-Turbo | |
|---|---|---|---|
PATH |
pthreads\dll\x64 |
opencv\build\x64\vc15\bin |
Anaconda\Library\bin |
INCLUDE |
pthreads\include |
opencv\build\include |
Anaconda\Library\include |
LIB |
pthreads\lib\x64 |
opencv\build\x64\vc15\lib |
Anaconda\Library\lib |
LINK |
pthreadVC2.lib |
opencv_world460.lib |
turbojpeg.lib |
A more detailed discussion of this and several other FFCV instalation-related issues on Windows, as well as a set of scripts for a fully automatic instllation process can be found in this [project](https://github.com/pchemguy/FFCVonWindows)