【pipenv】failed to create virtual enviroment: TypeError: canonicalize_version() got an unexpected keyword argument 'strip_trailing_zero'

环境:

python -- version

Python 3.9.1

pip --version

pip 24.2

pip show pipenv

2024.0.1

pip show setuptools

73.0.0

未成功的解决方案:

升级各个版本:

pip install --upgrade pip setuptools

pip install --upgrade pipenv

pipenv --clear

pipenv install --skip-lock

pip install pakaging ==21.0

最终有效的解决方案:

pip install packaging==22.0

引用:

https://github.com/pypa/pipenv/issues/6205#issuecomment-2284132100

 

posted @ 2024-08-20 11:03  ninarMing  阅读(729)  评论(0编辑  收藏  举报