简体   繁体   English

如何解决albumentations和sentry-sdk之间的版本冲突问题?

[英]How do I solve a version confliction problem between albumentations and sentry-sdk?

I am using albumentations(ver. 1.1.0) and pandas(ver. 1.4.2) in my poetry project.我在我的诗歌项目中使用albumentations(ver. 1.1.0) 和pandas(ver. 1.4.2)。
And I would like to add Sentry to my project.我想将Sentry添加到我的项目中。
However, the albumentations Library depends on Scikit-learn, and sk-learn depends on pillow(Over ver. 9.1.1).但是,almentations Library 依赖于 Scikit-learn,而 sk-learn 依赖于pillow(超过ver. 9.1.1)。 In contrast, sentry-sdk depends on pillow 9.0.1, eventually the version solving fails.相比之下,sentry-sdk依赖pillow 9.0.1,最终版本解析失败。
Here is the error log.这是错误日志。

SolverProblemError


  Because sentry (22.8.0) depends on pillow (9.0.1)
   and no versions of sentry match >22.8.0,<23.0.0, sentry (>=22.8.0,<23.0.0) requires pillow (9.0.1).
  So, because tag-predicter depends on both Pillow (^9.1.1) and sentry (^22.8.0), version solving failed.

Similar problem occur for Pandas. Pandas 也会出现类似的问题。

SolverProblemError

  Because no versions of pandas match >1.4.2,<1.4.3 || >1.4.3,<1.4.4 || >1.4.4,<2.0.0
   and pandas (1.4.2) depends on pytz (>=2020.1), pandas (>=1.4.2,<1.4.3 || >1.4.3,<1.4.4 || >1.4.4,<2.0.0) requires pytz (>=2020.1).
  And because pandas (1.4.4) depends on pytz (>=2020.1)
   and pandas (1.4.3) depends on pytz (>=2020.1), pandas (>=1.4.2,<2.0.0) requires pytz (>=2020.1).
  Because no versions of sentry match >22.8.0,<23.0.0
   and sentry (22.8.0) depends on pytz (2018.9), sentry (>=22.8.0,<23.0.0) requires pytz (2018.9).
  Thus, sentry (>=22.8.0,<23.0.0) is incompatible with pandas (>=1.4.2,<2.0.0).
  So, because tag-predicter depends on both pandas (^1.4.2) and sentry (^22.8.0), version solving failed.

What should I do to solve those problem?我应该怎么做才能解决这些问题?

I used wrong package name sentry instead of correct package name sentry-sdk .我使用了错误的 package name sentry而不是正确的 package name sentry-sdk

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM