使用诗歌解决 boto3 和 s3fs 上的依赖关系失败

jto*_*lem 7 boto3 python-poetry python-s3fs

我可以使用以下命令安装 boto3、s3fs 和 pandas:

pip install boto3 pandas s3fs
Run Code Online (Sandbox Code Playgroud)

但诗歌却失败了:

poetry add boto3 pandas s3fs
Run Code Online (Sandbox Code Playgroud)

这是错误:

Because no versions of s3fs match >2023.3.0,<2024.0.0
 and s3fs (2023.3.0) depends on aiobotocore (>=2.4.2,<2.5.0), s3fs (>=2023.3.0,<2024.0.0) requires aiobotocore (>=2.4.2,<2.5.0).
And because no versions of aiobotocore match >2.4.2,<2.5.0
 and aiobotocore (2.4.2) depends on botocore (>=1.27.59,<1.27.60), s3fs (>=2023.3.0,<2024.0.0) requires botocore (>=1.27.59,<1.27.60).
And because boto3 (1.26.91) depends on botocore (>=1.29.91,<1.30.0)
 and no versions of boto3 match >1.26.91,<2.0.0, s3fs (>=2023.3.0,<2024.0.0) is incompatible with boto3 (>=1.26.91,<2.0.0).
So, because engexploit-k8s-pod-operator-images depends on both boto3 (^1.26.91) and s3fs (^2023.3.0), version solving failed.
Run Code Online (Sandbox Code Playgroud)

jto*_*lem 1

我通过pandas.read_csv方法使用 s3fs 。我只使用 boto3 解决了这个问题,就像这个答案一样。