Kedro 安装 - 无法卸载“terminado”

Kedro install - Cannot uninstall `terminado`

当 运行 kedro install 我得到以下错误:

Attempting uninstall: terminado
    Found existing installation: terminado 0.8.3
ERROR: Cannot uninstall 'terminado'. 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.

此 github issue 建议进行以下修复:

pip install terminado --user --ignore-installed

但它对我不起作用,因为我一直有同样的错误。

注: 这个问题与 类似,但差异很大,我认为值得单独提问。

问题是 kedro 模板项目需要的版本见 src/requiremetns.txt

在我的项目中是terminado==0.9.1,因此下面解决了这个问题:

pip install terminado==0.9.1  --user --ignore-installed

对我来说是 requirements.txt;

中的这一行
...
jupyterlab>=1.0
....

删除了版本部分(“>=1.0”)并且有效;

...
jupyterlab
....