"pip3 install pipenv" gives error: ERROR: Cannot uninstall 'distlib'
"pip3 install pipenv" gives error: ERROR: Cannot uninstall 'distlib'
如何解决以下错误?
尝试在 Alpine 上安装 pipenv
时:
pip3 install pipenv
我收到以下错误:
Installing collected packages: distlib, virtualenv, pipenv
Attempting uninstall: distlib
Found existing installation: distlib 0.3.0
ERROR: Cannot uninstall 'distlib'. 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.
Python版本:3.8.3
pip3 版本:20.2.2
Alpine 版本:3.12(Linux 5.4.43-1-virt #2-Alpine SMP Thu, 28 May 2020 20:13:48 UTC x86_64 Linux)
使用 --ignore-installed distlib
选项安装 pip3
:
pip3 install --ignore-installed distlib pipenv
# ^^^^^^^^^^^^^^^^^^^^^^^^^^
如何解决以下错误?
尝试在 Alpine 上安装 pipenv
时:
pip3 install pipenv
我收到以下错误:
Installing collected packages: distlib, virtualenv, pipenv
Attempting uninstall: distlib
Found existing installation: distlib 0.3.0
ERROR: Cannot uninstall 'distlib'. 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.
Python版本:3.8.3
pip3 版本:20.2.2
Alpine 版本:3.12(Linux 5.4.43-1-virt #2-Alpine SMP Thu, 28 May 2020 20:13:48 UTC x86_64 Linux)
使用 --ignore-installed distlib
选项安装 pip3
:
pip3 install --ignore-installed distlib pipenv
# ^^^^^^^^^^^^^^^^^^^^^^^^^^