[英]SolverProblemError on install Tensorfow with poetry
当我用诗歌添加 tensoflow(诗歌添加 tensorflow)时,我收到此错误:
Using version ^2.7.0 for tensorflow
Updating dependencies
Resolving dependencies... (0.8s)
SolverProblemError
The current project's Python requirement (>=3.6,<4.0) is not compatible with some of the required packages Python requirement:
- tensorflow-io-gcs-filesystem requires Python >=3.6, <3.10, so it will not be satisfied for Python >=3.10,<4.0
- tensorflow-io-gcs-filesystem requires Python >=3.6, <3.10, so it will not be satisfied for Python >=3.10,<4.0
- tensorflow-io-gcs-filesystem requires Python >=3.6, <3.10, so it will not be satisfied for Python >=3.10,<4.0
....
For tensorflow-io-gcs-filesystem, a possible solution would be to set the `python` property to ">=3.6,<3.10"
For tensorflow-io-gcs-filesystem, a possible solution would be to set the `python` property to ">=3.6,<3.10"
For tensorflow-io-gcs-filesystem, a possible solution would be to set the `python` property to ">=3.6,<3.10"
错误消息告诉您,您的项目旨在兼容 python >=3.6,<4.0(您的 pyproject.toml 中可能有^3.6
),但 pytorch 表示它仅兼容 >=3.6,<3.10。 这只是您的项目定义范围的一个子集。
诗歌不关心你当前的环境。 它完全关心有效的项目定义。
该解决方案已在错误消息中提出。 将 pyproject.toml 中pyproject.toml
的版本范围设置为>=3.6, <3.10
。
您的项目中 Python 和 Tensorflow 版本之间存在冲突。 正如消息所示,您可以将 Python 版本设置在3.6
和3.10
之间。 我可以确认python=3.8
今天在 Ubuntu 20.04 中与tensorflow=2.7.0
配合良好。 这个新的 Tensorflow 版本已于上个月发布,它修复了最近AlreadyExists
错误,因此我可以推荐使用此组合。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.