解决 Cannot uninstall 'pyparsing' 问题

本文解决在安装matplotlib和pydot过程中遇到的pyparsing无法卸载问题,提供手动重装最新版pyparsing的方法。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

参考

pyparsing 无法卸载导致安装 matplotlib 出错

解决 Cannot uninstall 'pyparsing' 问题

在安装 pydot 时遇到依赖 pyparsing 无法更新问题:

Successfully built pyparsing
Installing collected packages: pyparsing
  Found existing installation: pyparsing 2.0.1
Cannot uninstall 'pyparsing'. 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.

解决方法是手动重装最新版 pyparsing

sudo pip install -I pyparsing==2.2.0

2019.1

转载于:https://www.cnblogs.com/qq952693358/p/10246375.html

python3 -m pip install --upgrade pip setuptools wheel 1 ⚙ Requirement already satisfied: pip in /usr/lib/python3/dist-packages (25.0) Collecting pip Downloading pip-25.0.1-py3-none-any.whl.metadata (3.7 kB) Requirement already satisfied: setuptools in /usr/lib/python3/dist-packages (58.2.0) Collecting setuptools Downloading setuptools-76.1.0-py3-none-any.whl.metadata (6.7 kB) Requirement already satisfied: wheel in /usr/lib/python3/dist-packages (0.45.1) Downloading pip-25.0.1-py3-none-any.whl (1.8 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.8/1.8 MB 3.2 MB/s eta 0:00:00 Downloading setuptools-76.1.0-py3-none-any.whl (1.2 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.2/1.2 MB 360.2 kB/s eta 0:00:00 WARNING: Error parsing dependencies of gpg: Invalid version: '1.16.0-unknown' WARNING: Error parsing dependencies of wfuzz: Expected end or semicolon (after version specifier) pyparsing>=2.4* ~~~~~^ Installing collected packages: setuptools, pip Attempting uninstall: setuptools Found existing installation: setuptools 58.2.0 Uninstalling setuptools-58.2.0: Successfully uninstalled setuptools-58.2.0 Attempting uninstall: pip Found existing installation: pip 25.0 error: uninstall-no-record-file × Cannot uninstall pip 25.0 ╰─> The package's contents are unknown: no RECORD file was found for pip. hint: The package was installed by debian. You should check if it can uninstall the package.
最新发布
03-19
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值