Skip to content

Commit 33e8590

Browse files
committed
pyproject.toml: install specific tensorflow-io-gcs-filesystem version
It seems that latest tensorflow-io-gcs-filesystem version is not available for Windows (see https://stackoverflow.com/questions/74949556/poetry-fails-to-install-tensorflow - and other similar issues). Therefore the solution I found is to pin tensorflow-io-gcs-filesystem to 0.27 for Windows. This forces also to pin python version to 3.10 for Windows.
1 parent 20e5d3d commit 33e8590

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

pyproject.toml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,17 @@ tensorflow = [
4848
]
4949
tensorflow-macos = { version = "^2.7.0,<=2.12", optional = true, markers = "sys_platform == 'darwin'" }
5050
tensorflow-metal = { version = "<1.3.0", optional = true, markers = "sys_platform == 'darwin'" }
51+
tensorflow-io-gcs-filesystem = [
52+
{ version = "==0.27", optional = true, platform = "win32", python = ">=3.10,<3.11" },
53+
{ version = "*", optional = true, platform = "linux" },
54+
{ version = "*", optional = true, markers = "sys_platform == 'darwin'" }
55+
]
5156

5257
[tool.poetry.extras]
53-
tf = [ "tensorflow", "tensorflow-macos", "tensorflow-metal"]
58+
tf = [ "tensorflow", "tensorflow-macos", "tensorflow-metal", "tensorflow-io-gcs-filesystem"]
5459
pytorch = ["scipy", "timm", "torch", "torchvision"]
5560

56-
[tool.poetry.dev-dependencies]
61+
[tool.poetry.group.dev.dependencies]
5762

5863
[build-system]
5964
requires = ["poetry-core>=1.0.0"]

0 commit comments

Comments
 (0)