Numpy 如何解决此错误OSError:[WinError 193]%1不是有效的Win32应用程序?

Numpy 如何解决此错误OSError:[WinError 193]%1不是有效的Win32应用程序?,numpy,Numpy,当我尝试导入numpy时,它会给我错误信息。我有64位处理器。错误如下 Python 3.8.3 (default, Jul 2 2020, 17:30:36) [MSC v.1916 64 bit (AMD64)] :: Anaconda, Inc. on win32 Type "help", "copyright", "credits" or "license" for more information

当我尝试导入numpy时,它会给我错误信息。我有64位处理器。错误如下

Python 3.8.3 (default, Jul  2 2020, 17:30:36) [MSC v.1916 64 bit (AMD64)] :: Anaconda, Inc. on win32
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import numpy
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      File "C:\Users\admin\AppData\Roaming\Python\Python38\site-packages\numpy\__init__.py", line 138, in <module>
        from . import _distributor_init
      File "C:\Users\admin\AppData\Roaming\Python\Python38\site-packages\numpy\_distributor_init.py", line 26, in <module>
        WinDLL(os.path.abspath(filename))
      File "C:\Users\admin\anaconda31\lib\ctypes\__init__.py", line 373, in __init__
        self._handle = _dlopen(self._name, mode)
    OSError: [WinError 193] %1 is not a valid Win32 application
Python 3.8.3(默认值,2020年7月2日,17:30:36)[MSC v.1916 64位(AMD64)]::win32上的Anaconda,Inc
有关详细信息,请键入“帮助”、“版权”、“信用证”或“许可证”。
>>>进口numpy
回溯(最近一次呼叫最后一次):
文件“”,第1行,在
文件“C:\Users\admin\AppData\Roaming\Python38\site packages\numpy\\uuuu init\uuuu.py”,第138行,在
从…起导入\u分发服务器\u初始化
文件“C:\Users\admin\AppData\Roaming\Python38\site packages\numpy\\u distributor\u init.py”,第26行,在
windl(os.path.abspath(文件名))
文件“C:\Users\admin\anaconda31\lib\ctypes\\uuuuu init\uuuu.py”,第373行,在\uuu init中__
self.\u handle=\u dlopen(self.\u名称,模式)
OSError:[WinError 193]%1不是有效的Win32应用程序

您需要python.exe在搜索路径上可见,或者您可以将完整路径传递给运行调用脚本的可执行文件 --还要确保您运行的软件是针对64位处理器的