2
1

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 3 years have passed since last update.

エラー「None of PyTorch, TensorFlow >= 2.0, or Flax have been found.」の対処

Last updated at Posted at 2021-02-19

こんなエラーが出ました。
None of PyTorch, TensorFlow >= 2.0, or Flax have been found. Models won't be available and only tokenizers, configuration and file/data utilities can be used.

#環境
centOS7
python2.7.5
pip20.3.4
pip3のpip 21.0.1

#対処
・tensorflowのインストール
pip install tensorflow==バージョン(2.0以上)
・pytorchのインストール
pip install torch

私の場合tensorflowをインストールするときにpip3でもインストールしたためこのエラーが出ました。
調べたところ、pip3ではtensorflowのバージョンが2.0以上だったのに対して、pipは2.0以下でした。pipのtensorflowをremoveしたところうまくいきました。

2
1
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
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?