OpenCV 4.1.2 with VS17 on Win10 with Anaconda 3 - Let's see this time...

Use scripts from Install OpenCV 3.4.4 on Windows (C++ and Python)

Three native python scripts:

  • main.py
  • installOpenCV.bat:
  • modifyBatchScripy.py

How to use:

  • python main.py: generate new ‘installOpenCV_modified.bat’
  • run installOpenCV_modified.bat: generate runScript.bat (DO NOT RUN IT!!)
  • python modifyBatchScript.py: generate finalScript.bat by modify runScript.bat
  • run finalScript.bat

Quirks on Windows 10

  1. Has to run Anaconda Prompt as Administrator, so as to have write access to C:\ProgramData\Anaconda3\xxx
  2. Administrator account did not include path to CMake, git etc.
  • path
PATH=C:\ProgramData\Anaconda3;C:\ProgramData\Anaconda3\Library\mingw-w64\bin;C:\ProgramData\Anaconda3\Library\usr\bin;C:\ProgramData\Anaconda3\Library\bin;C:\ProgramData\Anaconda3\Scripts;C:\ProgramData\Anaconda3\bin;C:\ProgramData\Anaconda3\condabin;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\Program Files\dotnet;C:\Program Files\Microsoft SQL Server\130\Tools\Binn;C:\Program Files (x86)\Couchapp;C:\Program Files\Microsoft VS Code\bin;C:\WINDOWS\System32\OpenSSH;C:\Program Files (x86)\GitExtensions;C:\Program Files\CMake\bin;C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin;C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx86\x86;C:\Users\Administrator.Z220-LONGZHENFR\AppData\Local\Microsoft\WindowsApps;c:\SecurityGate\website\jdk1.7.0_79\bin
  • set PATH=%PATH%;C:\Users\longzhen.li\AppData\Local\Programs\Git\cmd;
  1. python.exe-Entry Point Not Found
The procedure entry point OPENSSL_sk_new_reserve could not be 
   located in the dynamic link library.
   C:\Users\abc\Anaconda3\Library\bin\libssl11_-x64.dll

How to Fix Entry Point Not Found while installing libraries in conda environment

as it is suggested in this here I could solve this problem by copying libssl-1_1-x64 dlls in Anaconda/DLLS to Anaconda/Library/bin (probably replacing it)

I got the same issue while updating Anaconda navigator, and got it over by replacing the file libssl-1_1-x64.dll in Anaconda3/Library/bin with the one from Anaconda3/DLLs.

libssl-1_1-x64.dll from C:\ProgramData\Anaconda3\DLLs to C:\ProgramData\Anaconda3\Library\bin

  • Reason: conda update the new libssl-1_1-x64.dll but it’s not working!!
  1. stuck on opencl_kernels_dnn for over 3 hours… right click on the console (try to copy the console outputs) make it running again!!

ALL DONE. HOW HARD CAN IT BE?!!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值