textract 无法与其他软件包一起安装,因为存在 ~=

kuhbmx9i  于 5个月前  发布在  其他
关注(0)|答案(1)|浏览(92)

如果可能的话,可以将 ~= 替换为 >=。我无法在一个包含许多其他依赖项的大型项目中安装这个库。
https://github.com/deanmalmgren/textract/blob/ec3c0c3c982078d22e51cc2753baeaf48cdf2e19/requirements/python#L11C1-L12C1
问题1

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
textract 1.6.5 requires beautifulsoup4~=4.8.0, but you have beautifulsoup4 4.9.0 which is incompatible.

问题2

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
pyarabic 0.6.15 requires six>=1.14.0, but you have six 1.12.0 which is incompatible.
jhiyze9q

jhiyze9q1#

对我来说,这个库在lambda中与boto3产生了问题,反过来又导入了dateutil,它又导入了six,就像from six.moves import ...一样,这在python3.12和旧版本的six中无法正常工作。

尝试显式设置版本在安装过程中失败(这是好的,以它自己的方式)。

但是旧的six版本在python3.11中运行良好,所以目前我通过使用较旧的python版本来解决这个问题。

还可以在正常安装包之后手动更新six,以绕过兼容性检查 - 但这会给我现有的lambda构建流程增加一点复杂性。

相关问题