Tensorflow-Numpy OSError: [WinError 193] %1 is not a valid Win32 application

ぐ巨炮叔叔 提交于 2021-01-28 11:26:24

问题


I am trying to import Keras (using tensorflow), and I am getting this error. I have tried everything I found in the Internet, but still does not work. Please I will appreciate a lot if you help me.

I have read is something with the 32bits and 64bits versions. I have tried everything (downloaded and uninstalled several times everything).

I am pretty sure the problem is with the numpy DLL.

Traceback (most recent call last):
  File "versiones.py", line 2, in <module>
    import scipy
  File "C:\Users\Public\ANACONDA\lib\site-packages\scipy\__init__.py", line 62, in <module>
    from numpy import show_config as show_numpy_config
  File "C:\Users\Marcos Rusinol\AppData\Roaming\Python\Python37\site-packages\numpy\__init__.py", line 142, in <module>
    from . import core
  File "C:\Users\Marcos Rusinol\AppData\Roaming\Python\Python37\site-packages\numpy\core\__init__.py", line 23, in <module>
    WinDLL(os.path.abspath(filename))
  File "C:\Users\Public\ANACONDA\lib\ctypes\__init__.py", line 356, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: [WinError 193] %1 no es una aplicación Win32 válida


回答1:


I solved the problem!

I just download a 64 NUMPY wheel and installed it.



来源:https://stackoverflow.com/questions/55692459/tensorflow-numpy-oserror-winerror-193-1-is-not-a-valid-win32-application

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!