當我添加帶有詩歌的 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"
uj5u.com熱心網友回復:
錯誤訊息告訴您,您的專案旨在兼容 python >=3.6,<4.0(您^3.6的 pyproject.toml 中可能有),但 pytorch 說它僅兼容 >=3.6, <3.10。這只是您專案定義范圍的一個子集。
詩歌不關心你當前的環境。它完全關心有效的專案定義。
該解決方案已在錯誤訊息中提出。在你的pyproject.tomlto 中設定 python 的版本范圍>=3.6, <3.10。
uj5u.com熱心網友回復:
您專案中的 Python 和 Tensorflow 版本之間存在沖突。正如訊息所暗示的那樣,您可以在3.6和之間設定 Python 版本3.10。我可以確認今天在 Ubuntu 20.04 中python=3.8運行良好tensorflow=2.7.0。這個新的 Tensorflow 版本是上個月發布的,它修復了最近在其他版本中 Tensorflow 和 Keras 發生的AlreadyExists 錯誤,所以我可以推薦使用這個組合。
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/385053.html
上一篇:AttributeError:模塊'tensorflow.keras.layers'沒有屬性'Rescaling'
下一篇:無論如何要在帶有AppleSilicon(M1、M1Pro、M1Max)GPU的Mac中使用Tensorflow?
