LoginSignup
49
16

More than 3 years have passed since last update.

Numpy1.19.4のエラー RuntimeError: The current Numpy installation fails to pass a sanity check due to a bug in the windows runtime.

Last updated at Posted at 2020-11-05

[2020.1.25追記]
Numpy1.19.5がリリースされ,pip install numpyでこちらがインストールされるようになったようです.コメントで教えていただきました.ありがとうございます!

Numpyを使おうとしたら見慣れないエラーに遭遇しました.意外とあっさり解決できましたが,遭遇する方が多そうなので一応残しておきます.

環境

  • Windows10
  • Python 3.8.2
  • Numpy 1.19.4

エラー

RuntimeError: The current Numpy installation ('C:\\Users\\ ... \\venv\\lib\\site-packages\\numpy\\__init__.py') fails to pass a sanity check due to a bug in the windows runtime. See this issue for more information: https://tinyurl.com/y3dm3h86

解決法

調べてみるとStackOverFlowに同じエラーについての質問がありました.これによると,つい最近リリースされたNumpy 1.19.4が原因のようです.

コメントで教えて頂いたのですが,正しくはWindows側に原因があるそうです.1月末に修正される予定のようですが,それまではNumpy1.19.4を避けるのが一番簡単そうです.

回避するには単純にNumpyのバージョンをひとつ下げます.

pip install numpy==1.19.3
49
16
6

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
49
16