pipenv-setup icon indicating copy to clipboard operation
pipenv-setup copied to clipboard

ImportError: cannot import name 'LegacySpecifier' from 'packaging.specifiers'

Open bvidovic1 opened this issue 1 year ago • 2 comments

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 .

bvidovic1 avatar Jan 13 '23 10:01 bvidovic1