ERROR: Cannot uninstall ‘PyYAML‘.(仅供参考)

在尝试更新Python项目依赖时遇到错误:ERROR: Cannot uninstall 'PyYAML',因为它是distutils安装的项目,无法准确确定其文件归属,可能导致不完全卸载。解决方案是使用`pip install --ignore-installed PyYAML`命令来忽略该问题并继续安装其他包。
摘要由CSDN通过智能技术生成

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.()

$ pip install -U -r requirements.txt
Requirement already up-to-date: Cython in /home/dell/anaconda3/lib/python3.7/site-packages (from -r requirements.txt (line 2)) (0.29.21)
Collecting matplotlib>=3.2.2
  Using cached matplotlib-3.3.1-cp37-cp37m-manylinux1_x86_64.whl (11.6 MB)
Requirement already up-to-date: numpy>=1.18.5 in /home/dell/anaconda3/lib/python3.7/site-packages (from -r requirements.txt (line 4)) (1.19.2)
Requirement already up-to-date: opencv-python>=4.1.2 in /home/dell/anaconda3/lib/python3.7/site-packages (from -r requirements.txt (line 5)) (4.4.0.42)
Requirement already up-to-date: pillow in /home/dell/anaconda3/lib/python3.7/site-packages (from -r requirements.txt (line 6)) (7.2.0)
Processing /home/dell/.cache/pip/wheels/5e/03/1e/e1e954795d6f35dfc7b637fe2277bff021303bd9570ecea653/PyYAML-5.3.1-cp37-cp37m-linux_x86_64.whl
Collecting scipy>=1.4.1
  Using cached scipy-1.5.2-cp37-cp37m-manylinux1_x86_64.whl (25.9 MB)
Collecting tensorboard>=2.2
  Using cached tensorboard-2.3.0-py3-none-any.whl (6.8 MB)
Collecting torch>=1.6.0
  Using cached torch-1.6.0-cp37-cp37m-manylinux1_x86_64.whl (748.8 MB)
Collecting torchvision>=0.7.0
  Using cached torchvision-0.7.0-cp37-cp37m-manylinux1_x86_64.whl (5.9 MB)
Collecting tqdm>=4.41.0
  Using cached tqdm-4.48.

  • 4
    点赞
  • 10
    收藏
    觉得还不错? 一键收藏
  • 3
    评论
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值