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

后端 未结 8 897
[愿得一人]
[愿得一人] 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"
    
    0 讨论(0)
  • 2020-11-22 06:20

    The workaround is provided in the link mentioned in question.

    The developer mattip mentions below in the workaround suggested by him:

    1. Uninstall numpy.( Most probably it's 1.19.4)
    2. pip install numpy==1.19.3

    This worked for me.

    My configuration:OS-Win10,Anaconda Distribution,python=3.7

    0 讨论(0)
提交回复
热议问题