在Python使用Poetry安装sqlalchemy时会报错AttributeError的问题解决方法
很多小伙伴们在使用Python执行pip install sqlalchemy正常,但是执行poetry安装时就会报错,根据这一问题下面给大家介绍一下解决方法:
报错信息:
→backend poetry add sqlalchemyUsing version ^1.4.23forSQLAlchemyUpdating dependencies
Resolving dependencies...(0.1s)AttributeError‘emptyconstraint ‘object has no attribute ‘allowed’
at ~/.poetry/lib/poetry/_vendor/py3.8/poetry/core/version/markers.Py:291, verified
287│288|ifself._ Namenotin environment:289│returnTrue290│→291│return to yourself._ Constraints.Allow(self._ Parser(environment [self]._name]))292│293 without extras (self):# Type: ()-
THE END