windows - python opencv dll load failed Missing environment variables? -
i want utilize blender 2.72b opencv, had build python3 (i have 3.4.2 installed since blender using too). i'm working on win7 64bit, used 64bit version of python , numpy (blender of course). opencv used 3.0.0-beta.
for building used cmake 2.8 , visual studio 2010 professional (since have student-license > visual studio 10 win64 in cmake). followed these instructions (lower ones), modified python3.
these folders: target build-folder cmake (opencv.sln executed , build in here of course):
c:\users\gunnar\desktop\build\
opencv-source-folder:
c:\users\gunnar\downloads\opencv\sources\
python installed here:
c:\python34\
the build went fine, adjusted next before generating cmake (python2 left blank):
python3_executable -> c:/python34/python.exe python3_include_dir -> c:/python34/include python3_library -> c:/python34/libs/python34.lib python3_numpy_include_dirs -> c:/python34/lib/site-packages/numpy/core/include python3_packages_path -> c:/python34/lib/site-packages build_opencv_python3 -> true
the build-folder has cv2.pyd at
c:\users\gunnar\desktop\build\lib\release\
the cv2.pyd got copied to
c:\python34\lib\site-packages\
automatically , copied to
m:\programme\blender-2.72b-windows64\2.72\python\lib\site-packages\
if open python idle, next error (same in blender of course):
>>> import cv2 traceback (most recent phone call last): file "<pyshell#0>", line 1, in <module> import cv2 importerror: dll load failed: das angegebene modul wurde nicht gefunden.
(in english: dll load failed: module not found.)
i'm assuming i'm missing environment variables (from i've found googling it).
looking them have no corresponding entry path , no pythonpath.
my problem don't know need set there. never had alter in there , don't know needed.
if more info needed allow me know.
edit: got working now. i'm not quite sure, 1 did in end, first used
cmd > setx -m opencv_dir c:\users\gunnar\desktop\build
and edited path-variable these:
c:\users\gunnar\desktop\build; c:\users\gunnar\desktop\build\lib\release; c:\users\gunnar\desktop\build\x64\release; c:\users\gunnar\desktop\build\bin\release
and right works though removed of them...
python windows opencv python-3.x
No comments:
Post a Comment