重新创建 Pipfile.lock 时出现此错误:
packaging.specifiers.InvalidSpecifier: Invalid specifier '==0.5.2-auto'
我认为它与-auto
后缀有关,但由于某种原因它可以在不同的计算机上运行。
由于某种原因,回溯似乎被截断,这是我在控制台中看到的所有内容:
pipenv/vendor/requirementslib/models/requirements.py", line 1008, in get_version
return parse_version(self.get_specifier().version)
File "/home/johneye/.local/share/virtualenvs/python-microservice-scaffolding-ylP1urgf/lib/python3.6/site-packages/pipenv/vendor/requirementslib/models/requirements.py", line 1005, in get_specifier
return Specifier(self.specifiers)
File "/home/johneye/.local/share/virtualenvs/python-microservice-scaffolding-ylP1urgf/lib/python3.6/site-packages/pipenv/vendor/packaging/specifiers.py", line 85, in __init__
raise InvalidSpecifier("Invalid specifier: '{0}'".format(spec))
packaging.specifiers.InvalidSpecifier: Invalid specifier '==0.5.2-auto'