How do you fix “runtimeError: package fails to pass a sanity check” for numpy and pandas?

后端 未结 8 1054
[愿得一人]
[愿得一人] 2020-11-22 05:40

This is the error I am getting and, as far as I can tell, there is nothing useful on the error link to fix this.

RuntimeError: The current Numpy installa

8条回答
  •  不思量自难忘°
    2020-11-22 06:19

    As per the discussion on the link you provided, a numpy dev answered:

    NumPy has released a bugfix 1.19.3 to work around this issue. The bugfix broke something else on Linux, so we had to revert the fix in release 1.19.4, but you can still install the 1.19.3 via pip install numpy==1.19.3.

    So, if you need requirements that work for both Linux and Windows, you'll need to use PEP508:

    numpy==1.19.3; platform_system == "Windows"
    numpy==1.19.4; platform_system == "linux"
    

提交回复
热议问题