文章 ID: 000089269 內容類型: 錯誤訊息 最近查看日期: 2022 年 05 月 20 日

錯誤:「無法用 OpenVINO™ 工具組在 Ubuntu* 20.04 上卸載 'PyYAML'」

環境

Ubuntu 20.04

BUILT IN - ARTICLE INTRO SECOND COMPONENT
摘要

執行 OpenVINO™ demo_squeezenet_download_convert_run.sh 腳本時,在 Ubuntu* 20.04 上修復「無法卸載'PyYAML」錯誤的快速步驟。

描述
  • 已在 Ubuntu 20.04 上安裝OpenVINO™工具組
  • ran demo_squeezenet_download_convert_run.sh
  • 遇到下列錯誤
Collecting pyyaml>=5.4.1
  Downloading PyYAML-5.4.1-cp38-cp38-manylinux1_x86_64.whl (662 kB)
     |████████████████████████████████| 662 kB 3.6 MB/s 
Requirement already satisfied: requests>=2.25.1 in /usr/local/lib/python3.8/dist-packages (from -r /opt/intel/openvino_2021/deployment_tools/demo/../open_model_zoo/tools/downloader/requirements.in (line 2)) (2.26.0)
Requirement already satisfied: urllib3=1.21.1 in /usr/local/lib/python3.8/dist-packages (from requests>=2.25.1->-r /opt/intel/openvino_2021/deployment_tools/demo/../open_model_zoo/tools/downloader/requirements.in (line 2)) (1.26.7)
Requirement already satisfied: charset-normalizer~=2.0.0 in /usr/local/lib/python3.8/dist-packages (from requests>=2.25.1->-r /opt/intel/openvino_2021/deployment_tools/demo/../open_model_zoo/tools/downloader/requirements.in (line 2)) (2.0.6)
Requirement already satisfied: certifi>=2017.4.17 in /usr/lib/python3/dist-packages (from requests>=2.25.1->-r /opt/intel/openvino_2021/deployment_tools/demo/../open_model_zoo/tools/downloader/requirements.in (line 2)) (2019.11.28)
Requirement already satisfied: idna=2.5 in /usr/lib/python3/dist-packages (from requests>=2.25.1->-r /opt/intel/openvino_2021/deployment_tools/demo/../open_model_zoo/tools/downloader/requirements.in (line 2)) (2.8)
Installing collected packages: pyyaml
  Attempting uninstall: pyyaml
    Found existing installation: PyYAML 5.3.1
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.
Error on or near line 149; exiting with status 1
解決方法
注意OpenVINO工具組 2021.4.2 包含 Ubuntu 20.04 的預覽支援,請參閱 版本資訊 以取得其他資訊。
  1. 執行 下列命令以卸載預設 PyYAML 5.3.1 套件:

     apt-get purge python3-yaml
     
  2. 再次執行示範腳本:

    .//deployment_tools/demo/demo_squeezenet_download_convert_run.sh

相關產品

本文章適用於 2 產品

這個頁面的內容綜合了英文原始內容的人工翻譯譯文與機器翻譯譯文。本內容是基於一般資訊目的,方便您參考而提供,不應視同完整或準確的內容。如果這個頁面的英文版與譯文之間發生任何牴觸,將受英文版規範及管轄。 查看這個頁面的英文版。