解决安装gerapy的时候报错:ERROR: Cannot uninstall ‘certifi‘. It is a distutils installed project...

本文讲述了在使用Gerapy分布式爬虫框架时遇到的关于certifi包卸载问题的解决方案。通过pip install certifi --ignore-installed命令绕过问题,确保了后续gerapy的成功安装。
摘要由CSDN通过智能技术生成

问题描述

今天在学习使用gerapy分布式爬虫管理框架时,在安装这一步就遇到了报错,报错如下:
在这里插入图片描述

ERROR: Cannot uninstall 'certifi'. 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.

翻译:
错误:无法卸载“证书”。这是一个 distutils 安装的项目,因此我们无法准确确定哪些文件属于它,这只会导致部分卸载。
应该是pip在内部运行pip uninstall certifi命令的时候出错了,尝试运行了一下pip uninstall certifi,发现报一样的错误:
在这里插入图片描述
只好去百度一下该怎么解决,最后找到解决方法了。

解决办法

运行命令:

pip install certifi --ignore-installed

在这里插入图片描述
运行完该命令后再次用pip install gerapy就不会报错,能成功安装gerapy。
在这里插入图片描述
参考文章:
https://blog.csdn.net/weixin_43332715/article/details/121895795
https://blog.csdn.net/chrisitian666/article/details/108773287

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值