Tensorflow-io-gcs-filesystem with Windows - General Discussion - TensorFlow Forum
上記にある通り、2023/11月現在、依存性のあるtensorflow-io-gcs-filesystemが、0.31.0しかwindowsに適応していない。
> poetry add tensorflow
Using version ^2.15.0 for tensorflow
Updating dependencies
Resolving dependencies... (1.2s)
Package operations: 3 installs, 0 updates, 0 removals
• Installing keras (2.15.0)
• Installing tensorflow-io-gcs-filesystem (0.34.0): Failed
RuntimeError
Unable to find installation candidates for tensorflow-io-gcs-filesystem (0.34.0)
at C:\py39\lib\site-packages\poetry\installation\chooser.py:73 in choose_for
69│
70│ links.append(link)
71│
72│ if not links:
→ 73│ raise RuntimeError(f"Unable to find installation candidates for {package}")
74│
75│ # Get the best link
76│ chosen = max(links, key=lambda link: self._sort_key(package, link))
77│
Cannot install tensorflow-io-gcs-filesystem.
そのため、先にtensorflow-io-gcs-filesystemだけ、インストールして、そのあとにtensorflowをインストールした。
> poetry add tensorflow-io-gcs-filesystem==0.31.0
Updating dependencies
Resolving dependencies... (0.5s)
Package operations: 1 install, 0 updates, 0 removals
• Installing tensorflow-io-gcs-filesystem (0.31.0)
Writing lock file
> poetry add tensorflow
Using version ^2.15.0 for tensorflow
Updating dependencies
Resolving dependencies... (1.4s)
Package operations: 1 install, 5 updates, 0 removals
• Updating google-auth-oauthlib (1.0.0 -> 1.1.0)
• Downgrading protobuf (4.25.1 -> 4.23.4)
• Updating keras (2.14.0 -> 2.15.0)
• Updating tensorboard (2.14.1 -> 2.15.1)
• Updating tensorflow-estimator (2.14.0 -> 2.15.0)
• Installing tensorflow (2.15.0)
Writing lock file