El paquete numpy en python informa un error _win_os_check ()

Informar un error

Traceback (most recent call last):
  File "C:/Users/Administrator/Desktop/NeuralNetworks/NeuralNerwork.py", line 2, in <module>
    import numpy
  File "C:\Users\Administrator\NeuralNetworks\lib\site-packages\numpy\__init__.py", line 305, in <module>
    _win_os_check()
  File "C:\Users\Administrator\NeuralNetworks\lib\site-packages\numpy\__init__.py", line 302, in _win_os_check
    raise RuntimeError(msg.format(__file__)) from None
RuntimeError: The current Numpy installation ('C:\\Users\\Administrator\\NeuralNetworks\\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

Solución

Comente esta línea a = a% 17 en __init__.py

    def _win_os_check():
        """
        Quick Sanity check for Windows OS: look for fmod bug issue 16744.
       """
        try:
            a = arange(13 * 13, dtype= float64).reshape(13, 13)
            # a = a % 17  # calls fmod
            linalg.eig(a)
        except Exception:
            msg = ("The current Numpy installation ({!r}) fails to "
                   "pass a sanity check due to a bug in the windows runtime. "
                   "See this issue for more information: "
                   "https://tinyurl.com/y3dm3h86")
            raise RuntimeError(msg.format(__file__)) from None

Supongo que te gusta

Origin blog.csdn.net/joey_ro/article/details/111587183
Recomendado
Clasificación