- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have been attempting to run the demos under /deployment_toos/. However, whenever I run a demo, I get the message
\Intel\openvino_2021\deployment_tools\model_optimizer\install_prerequisites\..\mo\utils\extract_release_version.py') was unexpected at this time.
I've tried reinstalling the toolkit and starting the setup for the NCS2 but to no avail.
I'm running Windows 10 Pro on the latest update
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Sean Mulhall,
Thank you for reaching out. I also get this message when running the install_prerequisites_caffe.bat file.
For your information, it is required to use double quotation marks when specifying paths with spaces for windows.
However, in the original script of install_prerequisites.bat file, there are missing double quotation marks in the python_command and the errorlevel parts.
Hence, we need to add the double quotation marks in line 73, 83, 122 and 140.
For Example:
The default install directory of OpenVINO™ Toolkit is:
C:\Program Files (x86)\Intel\openvino_2021.3.394
Line 73:
Original line:
set python_command='python %~dp0..\mo\utils\extract_release_version.py'
Edited line:
set python_command='python "%~dp0..\mo\utils\extract_release_version.py"'
Regards,
Syamimi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@Syamimi_Intel
Thank you, that solved my problem. However, I now have a different error:
[ WARNING ] Failed to import Inference Engine Python API in: PYTHONPATH
[ WARNING ] [WinError 2] The system cannot find the file specified: 'C:\\Program Files (x86)\\Intel\\openvino_2021\\python\\python3.9\\openvino\\libs'
[ WARNING ] Failed to import Inference Engine Python API in: C:\Program Files (x86)\Intel\openvino_2021.3.394\python\python3.9
[ WARNING ] [WinError 2] The system cannot find the file specified: 'C:\\Program Files (x86)\\Intel\\openvino_2021\\python\\python3.9\\openvino\\libs'
[ WARNING ] Failed to import Inference Engine Python API in: C:\Program Files (x86)\Intel\openvino_2021.3.394\python\python3.9
[ WARNING ] [WinError 2] The system cannot find the file specified: 'C:\\Program Files (x86)\\Intel\\openvino_2021\\python\\python3.9\\openvino\\libs'
WARNING: Package(s) not found: openvino
[ WARNING ] Could not find the Inference Engine Python API. Installing OpenVINO (TM) toolkit using pip
ERROR: Could not find a version that satisfies the requirement openvino==2021.3
ERROR: No matching distribution found for openvino==2021.3
[ WARNING ] Could not find the OpenVINO (TM) toolkit version 2021.3 in pip
[ WARNING ] The highest OpenVINO (TM) toolkit version will be installed (may be incompatible with current Model Optimizer version)
[ WARNING ] It is recommended to build the Inference Engine from sources even if the current installation is successful
ERROR: Could not find a version that satisfies the requirement openvino
ERROR: No matching distribution found for openvino
[ WARNING ] Could not find OpenVINO (TM) toolkit version available in pip for installation
[ WARNING ] Consider building the Inference Engine Python API from sources
*****************************************************************************************
Optional: To speed up model conversion process, install protobuf-*.egg located in the
"model-optimizer\install_prerequisites" folder or building protobuf library from sources.
For more information please refer to Model Optimizer FAQ, question #80.
Error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have Python 3.8 (Anaconda) installed for all users.
echo %pythonpath% gives the following:
C:\Program Files (x86)\Intel\openvino_2021\deployment_tools\tools\post_training_optimization_toolkit;C:\Program Files (x86)\Intel\openvino_2021\deployment_tools\open_model_zoo\tools\accuracy_checker;C:\Program Files (x86)\Intel\openvino_2021\python\python3.8;C:\Program Files (x86)\Intel\openvino_2021\python\python3;C:\Program Files (x86)\Intel\openvino_2021\deployment_tools\model_optimizer;
I have the same error message:
[ WARNING ] Failed to import Inference Engine Python API in: PYTHONPATH
[ WARNING ] [WinError 2] The system cannot find the file specified: 'C:\\Program Files (x86)\\Intel\\openvino_2021\\python\\python3.8\\openvino\\libs'
[ WARNING ] Failed to import Inference Engine Python API in: C:\Program Files (x86)\Intel\openvino_2021.3.394\python\python3.8
[ WARNING ] [WinError 2] The system cannot find the file specified: 'C:\\Program Files (x86)\\Intel\\openvino_2021\\python\\python3.8\\openvino\\libs'
[ WARNING ] Failed to import Inference Engine Python API in: C:\Program Files (x86)\Intel\openvino_2021.3.394\python\python3.8
[ WARNING ] [WinError 2] The system cannot find the file specified: 'C:\\Program Files (x86)\\Intel\\openvino_2021\\python\\python3.8\\openvino\\libs'
Googled for some time, could not find any solution. This thread is the most close one, can you help?
Thank you
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Sean Mulhall,
I'm glad that you can solve your issue.
Next, based on the error:
ERROR: Could not find a version that satisfies the requirement openvino
ERROR: No matching distribution found for openvino
This happens because you are using Python 3.9 version. For your information, you have to use Python 3.6-3.8 64-bit version as a primary Python version because this is the python version supported by OpenVINO 2021.3 for Windows.
Refer to the link given below as your references:
Regards,
Syamimi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Sean Mulhall,
This thread will no longer be monitored since we have provided a solution. If you need any additional information from Intel, please submit a new question.
Regards,
Syamimi

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page