pipenv-setup
pipenv-setup copied to clipboard
ImportError: cannot import name 'LegacySpecifier' from 'packaging.specifiers'
This error appears with pipenv version:
pipenv, version 2022.12.19
.
Reason is that after packaging
pypi package version 21.3
they removed Legacy Specifier.
https://packaging.pypa.io/en/stable/changelog.html#id2
Workaround is to lock packaging dependency in Pipenv
file to 21.3
:
vistir = "==0.6.1"
packaging = "==21.3"
vistir is there because of this issue: https://github.com/Madoshakalaka/pipenv-setup/issues/138 .