pip+为什么pip删除当前版本,而我们不确定强制重新安装选项

2024-03-28 23:36:09 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在安装以下python模块

pip install ipaddress-1.0.23-py2.py3-none-any.whl

pip在上失败

Processing ipaddress-1.0.23-py2.py3-none-any.whl
Installing collected packages: ipaddress
  Attempting uninstall: ipaddress
    Found existing installation: ipaddress 1.0.16
ERROR: Cannot uninstall 'ipaddress'. 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试图卸载当前的pkg- ipaddress 1.0.16

正如大家所看到的,我们没有使用选项--force-reinstall

那么pip install为什么要删除当前的- ipaddress 1.0.16

引用-Difference between pip install options "ignore-installed" and "force-reinstall"


Tags: installpipinstalledandtononewhichpy3