Upgrade PyYAML version manually outside the virtual environment.
- Ran OpenVINO™ Toolkit Benchmark Demo in virtual environment:
./demo_benchmark_app.sh -d GPU
- Encountered error:
Collecting pyyaml>=5.4.1
Downloading PyYAML-6.0-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (603 kB)
|████████████████████████████████| 603 kB 242 kB/s
Installing collected packages: pyyaml
Attempting uninstall: pyyaml
Found existing installation: PyYAML 3.12
ERROR: Cannot uninstall 'PyYAML'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
When running Benchmark Demo Script, the PyYAML version will be updated (pyyaml>=5.4.1) in all environments. However, pip in virtual environment is unable to update the PyYAML version in the default system environment.
- Update the PyYAML version manually outside the virtual environment:
pip install --ignore-installed PyYAML - Run OpenVINO™ Toolkit Benchmark Demo in virtual environment again:
./demo_benchmark_app.sh -d GPU