使用Poetry安装SQLAlchemy会导致AttributeErrorr

使用pip安装时,pip install sqlalchemy一切正常。

使用诗歌安装时出现错误

?  backend poetry add sqlalchemy
Using version ^1.4.23 for SQLAlchemy

Updating dependencies
Resolving dependencies... (0.1s)

  AttributeError

  'EmptyConstraint' object has no attribute 'allows'

  at ~/.poetry/lib/poetry/_vendor/py3.8/poetry/core/version/markers.py:291 in validate
      287?
      288?         if self._name not in environment:
      289?             return True
      290?
    ? 291?         return self._constraint.allows(self._parser(environment[self._name]))
      292?
      293?     def without_extras(self):  # type: () -> MarkerTypes
      294?         return self.exclude("extra")
      295?
?  backend

回答

尝试poetry self update,然后poetry update


以上是使用Poetry安装SQLAlchemy会导致AttributeErrorr的全部内容。
THE END
分享
二维码
< <上一篇
下一篇>>