Article ID: 000089836 Content Type: Error Messages Last Reviewed: 05/20/2022

Error: “Cannot Uninstall ‘PyYAML’” When Running the OpenVINO™ Toolkit Benchmark Demo Script in Virtual Environment

BUILT IN - ARTICLE INTRO SECOND COMPONENT
Summary

Upgrade PyYAML version manually outside the virtual environment.

Description
  • 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.

Resolution

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.

  1. Update the PyYAML version manually outside the virtual environment:
    pip install --ignore-installed PyYAML
  2. Run OpenVINO™ Toolkit Benchmark Demo in virtual environment again:
    ./demo_benchmark_app.sh -d GPU

Related Products

This article applies to 2 products