在Python使用Poetry安装sqlalchemy时会报错AttributeError的问题解决方法

很多小伙伴们在使用Python执行pip install sqlalchemy正常,但是执行poetry安装时就会报错,根据这一问题下面给大家介绍一下解决方法:

在Python使用Poetry安装sqlalchemy时会报错AttributeError的问题解决方法插图亿华云

报错信息:

backend poetry add sqlalchemyUsing version ^1.4.23forSQLAlchemyUpdating dependencies
Resolving dependencies...0.1sAttributeErroremptyconstraint object has no attribute allowed
at
~/.poetry/lib/poetry/_vendor/py3.8/poetry/core/version/markers.Py:291, verified
287288|ifself._ Namenotin environment:289returnTrue290291return to yourself._ Constraints.Allow(self._ Parser(environment [self]._name]))292293 without extras (self):# Type: ()-

THE END
Copyright © 2024 亿华云