【成功解决:Can‘t uninstall ‘ultralytics‘. No files were found to uninstall.】

问题:

尝试卸载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未卸载。

解决方法

  1. 进行py39torch110环境安路径D:\Anaconda\envs\py39torch110\Lib\site-packages,手动删除ultralytics_thop-2.x.x.dist-info文件即可
  2. 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: 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

一只云卷云舒

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值