问题描述
今天在学习使用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,发现报一样的错误:

只好去百度一下该怎么解决,最后找到解决方法了。
解决办法
运行命令:

本文讲述了在使用Gerapy分布式爬虫框架时遇到的关于certifi包卸载问题的解决方案。通过pip install certifi --ignore-installed命令绕过问题,确保了后续gerapy的成功安装。
最低0.47元/天 解锁文章
9万+

被折叠的 条评论
为什么被折叠?



