问题:
尝试卸载ultralytics时,使用pip uninstall ultralytics
命令,已经卸载了ultralytics,但是仍出现Can't uninstall 'ultralytics'. No files were found to uninstall
,导致无法卸载干净。
原因
ultralytics相应的dist-info
文件ultralytics_thop-2.x.x.dist-info
未卸载。
解决方法
- 进行py39torch110环境安路径
D:\Anaconda\envs\py39torch110\Lib\site-packages
,手动删除ultralytics_thop-2.x.x.dist-info
文件即可 pip show ultralytics
查看其安装路径Location: e:\code\YOLO
,手动修改此路径上任一文件夹名称使其找不到or直接删除即可
(py39torch110) E:\project\16_全景相机\code\ultralytics>pip show ultralytics
Name: ultralytics
Version: 8.0.182
Summary: Ultralytics YOLOv8 for SOTA object detection, multi-object tracking, instance segmentation, pose estimation and im
age classification.
Home-page: https://github.com/ultralytics/ultralytics
Author: Ultralytics
Author-email: hello@ultralytics.com
License: AGPL-3.0
Location: e:\code\YOLO
Requires: matplotlib, opencv-python, pandas, pillow, psutil, py-cpuinfo, pycocotools, pyyaml, requests, scipy, seaborn, tqd
m
Required-by: