I want to work with Neural Compute Stick 2 in Python 3 on Windows
I installed 2 latest versions OpenVINO (2019.2.242, 2019.1.148) according to this instruction
Ran the file setupvars.bat, then tried to import libraries:
from openvino.inference_engine import IENetwork, IECore
And always get this error
ImportError: cannot import name 'IECore'
Have you tried setting the PYTHONPATH environment variable (take a look at https://software.intel.com/en-us/articles/use-an-inference-engine-api-in-python-to-deploy-the-openvi...? In Windows you can open a command prompt and type: set PYTHONPATH=C:\Program Files (x86)\IntelSWTools\openvino_2019.1.133\python\python3.5\openvino
You can substitute for whatever your path is. Hope this helps!
Dear klekovkin, vladislav, as Gabriel said, this has to do with your PYTHONPATH not being set correctly. Seems like you did run setupvars.bat though. Can you do echo %PYTHONPATH% ? From where are you running your Python script ? This is a simple Python script issue actually. The best way to resolve this is to try running your python script from the same place that all the other python scripts live, i.e. from here :
C:\Program Files (x86)\IntelSWTools\openvino_2019.2.275\inference_engine\samples\python_samples
Why not copy the classification_sample into your own folder and modify that script ? Your script doesn't have to live here forever but at least it will get you past the PYTHONPATH issues (make sure to run setupvars.bat)