1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

記事投稿キャンペーン 「AI、機械学習」

WindowsにTensorflow2をpoetryでインストールで少しはまる

Last updated at Posted at 2023-11-22

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

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?