- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
Hello!
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
https://docs.openvinotoolkit.org/latest/_docs_install_guides_installing_openvino_windows.html
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'
링크가 복사됨
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
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-openvino-toolkit)? 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!
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
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)
Thanks,
Shubha